mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00

This field used to match "LocalTZA" from the ECMAScript specification when "LocalTZA" was still a constant value. But in the current specification "LocalTZA" was changed to a function to compute the local time zone adjustment at a given time. To avoid confusion between `localTZA_` and "LocalTZA" from the specification, remove `localTZA_` and instead only expose the `DateTimeInfo::localTZA()` function in contexts where the old "LocalTZA" definition is still used (non-Intl or system ICU builds). `localTZA_` was also used as a cache key for `DateObject` slots, replace the usage there with `DateTimeInfo::utcToLocalStandardOffsetSeconds()` to make clear that the cache key isn't tied to any spec calls to "LocalTZA". Differential Revision: https://phabricator.services.mozilla.com/D41375 --HG-- extra : moz-landing-system : lando