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
parent
commit
65d8b4281c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      framework/src/Volo.Abp.Timing/Volo/Abp/Timing/TimeZoneHelper.cs

4
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;

Loading…
Cancel
Save