Browse Source
Filter IANA timezones to include only those with a '/' in their names
pull/22236/head
maliming
1 year ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.Timing/Volo/Abp/Timing/TZConvertTimezoneProvider.cs
|
|
|
@ -15,7 +15,7 @@ public class TZConvertTimezoneProvider : ITimezoneProvider, ITransientDependency |
|
|
|
|
|
|
|
public virtual List<NameValue> GetIanaTimezones() |
|
|
|
{ |
|
|
|
return TZConvert.KnownIanaTimeZoneNames.OrderBy(x => x).Select(x => new NameValue(x, x)).ToList(); |
|
|
|
return TZConvert.KnownIanaTimeZoneNames.OrderBy(x => x).Where(x => x.Contains("/")).Select(x => new NameValue(x, x)).ToList(); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual string WindowsToIana(string windowsTimeZoneId) |
|
|
|
|