André Bargull df1430cb05 Bug 1533328 - Part 7: Remove separate 'localTZA_' field from DateTimeInfo. r=jorendorff
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
2019-08-20 09:08:56 +00:00
..