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