refactor(SerializerSettings.DateTimeZoneHandling): Aktualisiert, um über Appsettings konfiguriert zu werden.

- Standardmäßig auf „Lokal“ eingestellt.
This commit is contained in:
Developer 02 2024-11-11 15:13:25 +01:00
parent ff6ebf300c
commit 11913ea667
2 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ try {
.AndIf(c => !config.GetValue<bool>("UseEncryptor")));
}).AddNewtonsoftJson(options =>
{
options.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc;
options.SerializerSettings.DateTimeZoneHandling = config.GetValue<DateTimeZoneHandling>("DateTimeZoneHandling");
});
if (builder.Configuration.GetValue<bool>("UseSwagger"))

View File

@ -72,6 +72,7 @@
"IV": "gMuetIjlPvJnSzu+i7I3xg=="
},
"AllowedGroupName": "UM_ADMINS",
"DateTimeZoneHandling": "Local",
// Delete below in production
"UseEncryptor": true,
"UseSwagger": true