diff --git a/src/agent/NetworkResurrector.Agent/Extensions/StartupExtensions.cs b/src/agent/NetworkResurrector.Agent/Extensions/StartupExtensions.cs index 990da1e..eadcc30 100644 --- a/src/agent/NetworkResurrector.Agent/Extensions/StartupExtensions.cs +++ b/src/agent/NetworkResurrector.Agent/Extensions/StartupExtensions.cs @@ -7,7 +7,6 @@ using Netmash.Extensions.Swagger; using Netmash.Extensions.Swagger.Constants; using Netmash.Security.Authentication.Identity; using NetworkResurrector.Agent.Application; -using Newtonsoft.Json; using System.Reflection; namespace NetworkResurrector.Agent.Extensions @@ -16,8 +15,7 @@ namespace NetworkResurrector.Agent.Extensions { public static void ConfigureServices(this IServiceCollection services, IConfiguration configuration) { - services.AddControllers() - .AddNewtonsoftJson(o => o.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc); + services.AddControllers(); // Add basic authentication services.AddIdentityAuthentication(configuration.GetSection("IdentityServer")["BaseAddress"]);