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
GetNamedTimeZonePreviousTransition currently has an optimization to
avoid fruitlessly searching for a transition for far-future dates. This
optimization ignores cases where a time zone's offset changes are
scheduled more than one year in advance. This commit extends the
lookahead period to three years.
Similarly, GetNamedTimeZoneNextTransition has an optimization
where it assumes that no time zone has any transitions more than
one year in the future. This commit extends this lookahead to three
years later than either the current date or the input instant, whichever
is later.
When testing locally, these changes slow down these AOs by 2%-4%,
which IMO is an OK tradeoff for more accuracy.
Fixes#2564
0 commit comments