refactor(SerializerSettings.DateTimeZoneHandling): Aktualisiert, um über Appsettings konfiguriert zu werden.
- Standardmäßig auf „Lokal“ eingestellt.
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user