0
SASIMEXICO created
When access to Configuration component (with all tabs, starting with time zone as default) the api returns a error 500 then no time zones listed, in host and tenant too.
I'm using a zero 12.0.1 (latest with NET7) and postgree.
Any solution, please?
2 Answer(s)
-
0
Hi guys,
I changed the new method for the old method (previous zero versions) and works fine now. But don't think that is better solution if zero 12 method is diferent for any reason.
public List<NameValueDto> _GetWindowsTimezones() { return TZConvert.KnownWindowsTimeZoneIds.OrderBy(tz => tz) .Select(tz => new NameValueDto { Value = tz, Name = TZConvert.WindowsToIana(tz) + " (" + GetTimezoneOffset(TZConvert.GetTimeZoneInfo(tz)) + ")" }).OrderBy(e=> e.Name).ToList(); } public List<NameValueDto> GetWindowsTimezones() { var kk = TZConvert.KnownWindowsTimeZoneIds; return TZConvert.KnownWindowsTimeZoneIds.OrderBy(tz => tz) .Select(tz => new NameValueDto { Value = tz, Name = tz }).ToList(); }
-
0
Hi @SASIMEXICO
Do you get this error on a Windows, a MAC or a Linux machine ?
Thanks,