Skip to content

Fix Nunavut postal-code time zones - #685

Open
JoyceMiryamH wants to merge 2 commits into
Shopify:mainfrom
JoyceMiryamH:fix-nunavut-timezones
Open

JoyceMiryamH wants to merge 2 commits into
Shopify:mainfrom
JoyceMiryamH:fix-nunavut-timezones

Conversation

@JoyceMiryamH

Copy link
Copy Markdown

What are you trying to accomplish?

Nunavut continues to change clocks seasonally, while Manitoba and Alberta now remain on a fixed offset. Postal codes in Nunavut therefore need local time zones instead of America/Winnipeg or America/Edmonton.

What approach did you choose and why?

Move Kitikmeot prefixes to America/Cambridge_Bay, Kivalliq prefixes to America/Rankin_Inlet, Resolute prefixes to America/Resolute, and Arctic Bay prefixes to America/Iqaluit. Canada Post's air-stage office list identifies Arctic Bay's X0A 0A0 and X0A 0B3, and Resolute's X0A 0A2. Coral Harbour and Northwest Territories prefixes retain their existing zones.

The impact of these changes

Consumers reading Canadian time-zone prefixes receive zones that reflect the local communities' clock changes.

Testing

  • Canadian time-zone regression test: 26 assertions, including neighboring postal codes.
  • Regional YAML consistency tests: 42 tests passed.
  • RuboCop on the new test: passed.

Checklist

  • I have added a CHANGELOG entry for this change.

@JoyceMiryamH
JoyceMiryamH requested a review from a team as a code owner November 18, 2026 15:57
@JoyceMiryamH
JoyceMiryamH requested a review from o-benz November 18, 2026 15:57

@DominiqueFlaaa DominiqueFlaaa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just a couple small changes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The siblings in this directory are named <cc>_test.rb with class <Cc>Test (pa_test.rb → PaTest, mt_test.rb → MtTest). Please rename this to ca_test.rb / CaTest. That also gives future CA tests a home.

Comment thread CHANGELOG.md Outdated

## [Unreleased]

- Correct the time zones for Nunavut postal codes in Kitikmeot, Kivalliq, Resolute and Arctic Bay.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the pr link, like the entry below

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants