This commit is contained in:
parent
92d2dabaf8
commit
c461f0461d
@ -21,7 +21,6 @@ namespace hanyadikhetvan.Controllers
|
||||
[HttpGet]
|
||||
public HanyadikHetVan Get()
|
||||
{
|
||||
_logger.LogWarning(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE")).ToString());
|
||||
return new HanyadikHetVan();
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,6 @@ namespace hanyadikhetvan
|
||||
{
|
||||
public class HanyadikHetVan
|
||||
{
|
||||
public int HanyadikHet => DateTime.Now.Subtract(DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE"))).Days / 7;
|
||||
public int HanyadikHet => (DateTime.Now - (DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE")))).Days / 7;
|
||||
}
|
||||
}
|
||||
|
@ -22,6 +22,7 @@
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"environmentVariables": {
|
||||
"HANYADIKHET_STARTDATE": "2021-02-08",
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"dotnetRunMessages": "true",
|
||||
|
Loading…
Reference in New Issue
Block a user