Browse Source
Update framework/src/Volo.Abp.Timing/Volo/Abp/Timing/TimeZoneHelper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
pull/24607/head
Ma Liming
4 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
framework/src/Volo.Abp.Timing/Volo/Abp/Timing/TimeZoneHelper.cs
|
|
|
@ -32,7 +32,9 @@ public static class TimeZoneHelper |
|
|
|
} |
|
|
|
catch (TimeZoneNotFoundException) |
|
|
|
{ |
|
|
|
// ignore
|
|
|
|
// Invalid or unknown timezone IDs are expected here (e.g. from user input or
|
|
|
|
// external sources). We intentionally swallow this exception and return null
|
|
|
|
// so callers (like GetTimezones) can filter out invalid entries.
|
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
|