moment / moment-timezone

Timezone support for moment.js
momentjs.com/timezone
MIT License
3.82k stars 835 forks source link

Canada/Yukon offset before 1967 May 27 is wrong #1087

Closed hawkchen closed 8 months ago

hawkchen commented 8 months ago

Environment

{
    "moment": "2.29.4",
    "momentTz": "0.5.43",
    "date": "Fri Jan 05 2024 12:14:19 GMT+0800 (Taipei Standard Time)",
    "intlZone": "Asia/Taipei"
}

Issue description

1900 Aug 20 | 1967 May 27 | -9:00 | none

it should be -9:00

If my finding is correct, is there a way to patch this problem?

gilmoreorless commented 8 months ago

The IANA release 2022g updated past timestamps for this region:

Changes to past timestamps

    Changes for pre-1996 northern Canada (thanks to Chris Walton):

      Merge America/Iqaluit and America/Pangnirtung into the former,
      with a backward compatibility link for the latter name.
      There is no good evidence the two locations differ since 1970.
      This change affects pre-1996 America/Pangnirtung timestamps.

      Cambridge Bay, Inuvik, Iqaluit, Rankin Inlet, Resolute and
      Yellowknife did not observe DST in 1965, and did observe DST
      from 1972 through 1979.

      Whitehorse moved from -09 to -08 on 1966-02-27, not 1967-05-28.

(Canada/Yukon is an alias of America/Whitehorse)

Moment Timezone is using the latest known data. The other references you've found presumably haven't updated yet.