From 7792144f1c23e6f9193427cd482f3fcb6f98023a Mon Sep 17 00:00:00 2001 From: pavelbannov Date: Wed, 13 Dec 2023 15:05:21 +0300 Subject: [PATCH] Api: settings. Olson timezone --- web/ASC.Web.Api/Api/Settings/SettingsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ASC.Web.Api/Api/Settings/SettingsController.cs b/web/ASC.Web.Api/Api/Settings/SettingsController.cs index 68d04787639..e5a579f1936 100644 --- a/web/ASC.Web.Api/Api/Settings/SettingsController.cs +++ b/web/ASC.Web.Api/Api/Settings/SettingsController.cs @@ -183,7 +183,7 @@ public async Task GetSettingsAsync(bool? withpassword) settings.TrustedDomains = tenant.TrustedDomains; settings.TrustedDomainsType = tenant.TrustedDomainsType; var timeZone = tenant.TimeZone; - settings.Timezone = timeZone; + settings.Timezone = _timeZoneConverter.WindowsTzId2OlsonTzId(timeZone); settings.UtcOffset = _timeZoneConverter.GetTimeZone(timeZone).GetUtcOffset(DateTime.UtcNow); settings.UtcHoursOffset = settings.UtcOffset.TotalHours; settings.OwnerId = tenant.OwnerId;