refactor(SerializerSettings.DateTimeZoneHandling): Aktualisiert, um über Appsettings konfiguriert zu werden.
- Standardmäßig auf „Lokal“ eingestellt.
This commit is contained in:
parent
ff6ebf300c
commit
11913ea667
@ -34,7 +34,7 @@ try {
|
|||||||
.AndIf(c => !config.GetValue<bool>("UseEncryptor")));
|
.AndIf(c => !config.GetValue<bool>("UseEncryptor")));
|
||||||
}).AddNewtonsoftJson(options =>
|
}).AddNewtonsoftJson(options =>
|
||||||
{
|
{
|
||||||
options.SerializerSettings.DateTimeZoneHandling = DateTimeZoneHandling.Utc;
|
options.SerializerSettings.DateTimeZoneHandling = config.GetValue<DateTimeZoneHandling>("DateTimeZoneHandling");
|
||||||
});
|
});
|
||||||
|
|
||||||
if (builder.Configuration.GetValue<bool>("UseSwagger"))
|
if (builder.Configuration.GetValue<bool>("UseSwagger"))
|
||||||
|
|||||||
@ -72,6 +72,7 @@
|
|||||||
"IV": "gMuetIjlPvJnSzu+i7I3xg=="
|
"IV": "gMuetIjlPvJnSzu+i7I3xg=="
|
||||||
},
|
},
|
||||||
"AllowedGroupName": "UM_ADMINS",
|
"AllowedGroupName": "UM_ADMINS",
|
||||||
|
"DateTimeZoneHandling": "Local",
|
||||||
// Delete below in production
|
// Delete below in production
|
||||||
"UseEncryptor": true,
|
"UseEncryptor": true,
|
||||||
"UseSwagger": true
|
"UseSwagger": true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user