In this PR, I have improved the performance of the timezone plugin.
I didn't adopt the previous PR #2019 because it contained a breaking change and it introduced a bug.
I also shrunk the tz plugin after gzip from 1110bytes to 991bytes.
The changes are summarized below:
getDateTimeFormat
Use hourCycle: 'h23' so we can use single DateTimeFormat options and remove this workaround
Set all parts to numeric
tzToFirstOffsetCache
first guess of timezone offset in fixOffset (moved from here)
In this PR, I have improved the performance of the timezone plugin. I didn't adopt the previous PR #2019 because it contained a breaking change and it introduced a bug. I also shrunk the tz plugin after gzip from 1110bytes to 991bytes.
The changes are summarized below:
getDateTimeFormat
hourCycle: 'h23'
so we can use single DateTimeFormat options and remove this workaroundtzToFirstOffsetCache