debugging by writing to console
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
aa2b07ddc1
commit
605658c13c
@ -21,6 +21,7 @@ namespace hanyadikhetvan.Controllers
|
||||
[HttpGet]
|
||||
public HanyadikHetVan Get()
|
||||
{
|
||||
Console.WriteLine(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE")));
|
||||
return new HanyadikHetVan();
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,6 @@ namespace hanyadikhetvan
|
||||
{
|
||||
public class HanyadikHetVan
|
||||
{
|
||||
public int HanyadikHet => DateTime.Now.Subtract(DateTime.Parse("2020-02-08")).Days / 7;
|
||||
public int HanyadikHet => DateTime.Now.Subtract(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE"))).Days / 7;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user