Skip to content

Commit

Permalink
Api: settings. Olson timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbannov committed Dec 13, 2023
1 parent f271474 commit 7792144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/ASC.Web.Api/Api/Settings/SettingsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public async Task<SettingsDto> 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;
Expand Down

0 comments on commit 7792144

Please sign in to comment.