From 605658c13c3f203843b037902d9d65db335adfc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 9 Feb 2021 15:07:16 +0100 Subject: [PATCH] debugging by writing to console --- Controllers/HanyadikHetVanController.cs | 1 + HanyadikHetVan.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; } }