You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: simplify IsValidTimeZone to delegate to GetTimeZone (#54)
* feat: add class function TBundledTimeZone.IsValidTimeZone
* refactor: simplify IsValidTimeZone to delegate to GetTimeZone
Removes duplicated lock acquisition, zone scanning, and alias scanning
logic. GetTimeZone already handles all of this (including alias resolution),
so the implementation reduces to a simple try/except.
AIncludeAliases parameter is retained for API compatibility.
Also adds IsValidTimeZone declaration and implementation to src/TZDBPK/TZDB.pas
which was missing from the original PR.
---------
Co-authored-by: Havrlišan <20707187+havrlisan@users.noreply.github.com>
Co-authored-by: Alex Ciobanu <alex@ciobanu.org>
0 commit comments