diff --git a/Controllers/HanyadikHetVanController.cs b/Controllers/HanyadikHetVanController.cs index 3882fad..be73c6f 100644 --- a/Controllers/HanyadikHetVanController.cs +++ b/Controllers/HanyadikHetVanController.cs @@ -21,6 +21,7 @@ namespace hanyadikhetvan.Controllers [HttpGet] public HanyadikHetVan Get() { + Console.WriteLine(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE"))); return new HanyadikHetVan(); } } diff --git a/HanyadikHetVan.cs b/HanyadikHetVan.cs index aa9ddbf..c2a9a02 100644 --- a/HanyadikHetVan.cs +++ b/HanyadikHetVan.cs @@ -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; } }