DescriptionOverride Date.prototype.to*String with Intl.DateTimeFormat.format
This CL does two things.
1. By using Intl.DateTimeFormat, the timezone history is properly
taken into account when formatting date-time in the past or future
when the zone offset is different from the current zone offset.
(e.g. Europe/Moscow)
2. Reset the timezone in cached DateTimeFormat object to the current one unconditionally. This is a bit inefficient. It has to check DateCacheVersion and reset TZ only when necessary.
BUG=v8:3547, chromium:417640, v8:5022
TEST=See the bug
Patch Set 1 #Patch Set 2 : update TZ in cached copies of DateFormat #Patch Set 3 : rebased #Patch Set 4 : rebased #Messages
Total messages: 4 (2 generated)
|