changes on Startup.cs

This commit is contained in:
Siga
2020-03-01 18:16:43 +01:00
parent 03a955e1fb
commit 447dd2eabc
2 changed files with 4 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ namespace ReallifeGamemode.DataService
services
.AddMvc()
.AddJsonOptions(j =>
.AddNewtonsoftJson(j =>
{
j.SerializerSettings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore;
j.SerializerSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc;