postgres icon indicating copy to clipboard operation
postgres copied to clipboard

America/Winnipeg still converts with pre-2026e rules in 17.11.0.x; Manitoba's permanent UTC−5 starts 2026-11-01

Open Grace-Luu opened this issue 1 month ago • 2 comments

Follow-up to #2465, which #2501 closed by moving the build to PostgreSQL's embedded tzdata.

That embedded data is 2026c. IANA tzdata 2026e (released 2026-09-29) moves Manitoba to permanent UTC−5 on 2026-10-31, modelled from 2026-11-01 02:00 local, so every current image still applies the old fall-back to UTC−6 for America/Winnipeg. (The 2026-10-08 comment on #2465 flagged this class of gap.)

Repro, on any image or project:

select ('2026-11-02 12:00'::timestamp at time zone 'America/Winnipeg')::text;
  • Got: 2026-11-02 18:00:00+00 on public.ecr.aws/supabase/postgres 17.6.1.143, 17.11.0.004 and 17.11.0.007 (newest tag as of 2026-10-22).
  • Expected with tzdata ≥ 2026e: 2026-11-02 17:00:00+00.

Upgrading to 17.11.0.003 or later, as the 2026-10-09 reply on #2465 suggests, does not fix this: both 17.11 tags above are later and still answer 18:00.

Impact: from 2026-11-01, every Winnipeg wall-clock time that Postgres converts is an hour off from clients on current rules (Node ≥ 24.22.1 ships 2026e, and OS and browser updates are rolling out). A scheduling app computes lesson slots in the database and displays them on the device, so the two disagree by an hour. PostgreSQL's next minor releases are scheduled for 2026-11-12, after the change.

Ask: ship tzdata 2026e in the images and on hosted projects before 2026-11-01, for example by patching the embedded src/timezone/data/tzdata.zi or building against a current system tzdata again. Please also say which image version carries it.

Grace-Luu avatar Oct 22 '26 21:10 Grace-Luu

The other three Canadian changes in 2026b–2026e (America/Vancouver, America/Edmonton, America/Yellowknife) have the same gap, but only on the 17.6 line:

select z, ('2026-11-15 00:00'::timestamp at time zone z)::text
  from unnest(array['America/Vancouver','America/Edmonton',
                    'America/Yellowknife','America/Winnipeg']) z;
Zone 17.6.1.159 17.11.0.007 tzdata 2026e
America/Vancouver 08:00Z 07:00Z 07:00Z
America/Edmonton 07:00Z 06:00Z 06:00Z
America/Yellowknife 07:00Z 06:00Z 06:00Z
America/Winnipeg 06:00Z 06:00Z 05:00Z

17.6.1.159 is built with --with-system-tzdata pointing at a nix tzdata-2025b, so it predates all four changes. Our hosted projects on Postgres 17.6 return the same old offsets. The 17.11 images' embedded 2026c gets BC, Alberta and the NWT right, which leaves Winnipeg as the only wrong zone there.

So from 2026-11-01, projects still on 17.6 are an hour off in all four zones. Could you say whether the 2026e fix will also reach the 17.6 images and hosted 17.6 projects, or whether moving to 17.11 is the intended path?

lishanl avatar Oct 26 '26 18:10 lishanl

Hi maintainers,

I've been investigating #2591 and the earlier timezone-data change in #2501.

The reported SQL reproduction appears consistent with PostgreSQL builds using timezone data older than IANA 2026e. I also reviewed the repository's Nix build-check infrastructure and SQL regression-test layout.

I'd be interested in contributing a focused fix and regression coverage, but wanted to coordinate first given the November 1 effective date and the difference between the 17.6 and 17.11 release lines.

Would you prefer an upstream PostgreSQL timezone-data patch applied through the existing Nix package definitions, or an update to the packaged PostgreSQL sources? I would also propose a regression test covering Winnipeg and the other affected Canadian zones, with an unaffected-zone control.

Is someone already handling the release fix internally, or would an external PR be useful?

Thanks!

bazinga0027-gif avatar Oct 28 '26 13:10 bazinga0027-gif