mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-03 21:58:59 +00:00
Refactor CPTimeZone to utilize native JavaScript timezone APIs
Remove the legacy, locally-bundled tzdata payload and re-implement CPTimeZone to wrap the host JavaScript engine's native timezone capabilities. This uses fundamental properties of the host Javascript environment and is supported by browsers and Node. * Transition offset calculations, abbreviation lookups, and DST evaluations to rely on native temporal data via underlying bridging functions (e.g., `_offsetMinutesForZone`, `_abbreviationForNameAndDate`). * Implement synthetic fallback logic for fixed-offset abbreviations when native engines fail to produce IANA short names. * Route localized timezone name resolution (`_localizedNameForZone`) through native formatters. * Establish deterministic temporal baseline required by CPDateFormatter test suites. Eliminates the maintenance burden of updating a bundled tzdata package and guarantees timezone resolution remains synchronized with the host environment.
This commit is contained in:
1 parent
71c2501ff6
commit
a808c6fbab
1 file changed
+414
-414
+414
-414
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user