← Back to Issue

Add Pacific Time (Canada) and Alberta Time zone mappings

From uloza+hey@proton.me · original ↗ · unsubscribe

Adds two friendly zone mappings: Pacific Time (Canada) → America/Vancouver, Alberta → America/Edmonton


Add Pacific Time (Canada) and Alberta Time zone mappings by Saidbek · Pull Request #58321 · rails/rails · GitHub

Skip to content

Sign in

Appearance settings

Search/

Sign in

Sign up

Appearance settings

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

Uh oh!

There was an error while loading. Please reload this page.

rails / rails Public

Additional navigation options

Add Pacific Time (Canada) and Alberta Time zone mappings - #58321

#58321

Merged

guilleiguaran merged 2 commits into

rails:mainrails/rails:mainfrom

Saidbek:fix/as-timezone-canada-pacific-mountainSaidbek/rails:fix/as-timezone-canada-pacific-mountainCopy head branch name to clipboard

Aug 12, 2026

ConversationCommits2 (2)ChecksFiles changed

Merged

##

Add Pacific Time (Canada) and Alberta Time zone mappings#58321

guilleiguaran merged 2 commits into

rails:mainrails/rails:mainfrom

Saidbek:fix/as-timezone-canada-pacific-mountainSaidbek/rails:fix/as-timezone-canada-pacific-mountainCopy head branch name to clipboard

Conversation

@Saidbek

###

@SaidbekSaidbek commented Jul 31, 2026 •

edited by guilleiguaran

Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link

Copy Markdown

Contributor

Motivation / Background

Fixes #58316.

British Columbia and Alberta no longer share winter clocks with US Pacific and Mountain time. The existing Pacific Time (US & Canada) and Mountain Time (US & Canada) mappings still resolve to America/Los_Angeles and America/Denver, so apps and users treating those names as a proxy for BC or Alberta will be an hour off every winter.

Detail

This Pull Request adds two friendly zone mappings:

  • Pacific Time (Canada) → America/Vancouver
  • Alberta → America/Edmonton

The existing US & Canada entries are left unchanged for compatibility.

Additional information

Follows the same pattern as other regional divergences (Arizona, Saskatchewan, Atlantic Time (Canada)). Actual DST/offset rules still come from IANA tzdb (BC in 2026a, 2026b, Alberta in 2026c).

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Unrelated changes should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions @github-actions github-actions Bot added the activesupport label Jul 31, 2026

@adamhollett

###

adamhollett commented Jul 31, 2026

Copy link

Copy Markdown

Thanks for taking this on. This may have been missing from my reporting of the issue but I don’t think mapping Mountain Time to Edmonton is correct. Alberta’s new time zone is being referred to as “Alberta Time” (which covers Edmonton). I don’t believe this name has been recognized or added in to TZInfo yet. It might be more correct to map Mountain Time to America/Yellowknife.

This graphic on Wikipedia is a good way to see the new time zone situation: https://en.wikipedia.org/wiki/Time_in_Canada#/media/File:Canada_time_zone_map_-_en.svg

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Saidbek

[Add Pacific Time (Canada) and Alberta Time zone mappings](/rails/rails/pull/58321/commits/38c63e2013c44a6b1264a536d90ee2720174e01a "Add Pacific Time (Canada) and Alberta Time zone mappings British Columbia and Alberta no longer share winter clocks with US Pacific and Mountain time. Keep the existing US & Canada entries for compatibility and add Canada-specific friendly names mapped to America/Vancouver and America/Edmonton. Fixes #58316.") …

[38c63e2](/rails/rails/pull/58321/commits/38c63e2013c44a6b1264a536d90ee2720174e01a)

British Columbia and Alberta no longer share winter clocks with US Pacific and Mountain time. Keep the existing US & Canada entries for compatibility and add Canada-specific friendly names mapped to America/Vancouver and America/Edmonton.

Fixes rails#58316.

@Saidbek

Saidbek force-pushed the fix/as-timezone-canada-pacific-mountain branch from 64646f1 to 38c63e2 Compare July 31, 2026 19:15

@Saidbek Saidbek changed the title Add Pacific and Mountain Time (Canada) zone mappings Add Pacific Time (Canada) and Alberta Time zone mappings Jul 31, 2026

@Saidbek

###

Saidbek commented Jul 31, 2026 •

edited

Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link

Copy Markdown

Contributor Author

@adamhollett Thanks for the note, and for the map.

Agreed Alberta is no longer ordinary Mountain Time - year-round UTC-6, branded Alberta Time (green band on that map, with Sask).

The IANA target was fine though: tzdb 2026c put permanent -06 under America/Edmonton, and there’s no separate Alberta Time id. America/Yellowknife is just a Link to America/Edmonton in tzdb’s backward file, so it wouldn’t behave differently.

I’ve renamed Mountain Time (Canada) to Alberta Time.

🎉 1 adamhollett reacted with hooray emoji

All reactions

  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jstanley0

###

jstanley0 commented Aug 10, 2026

Copy link

Copy Markdown

It’s odd to see “Alberta Time” surrounded by “Hawaii”, “Mazatlan”, etc. Should it just be “Alberta”?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@guilleiguaran

###

guilleiguaran commented Aug 12, 2026

Copy link

Copy Markdown

Member

@Saidbek, Agree with @jstanley0; other places covered have longer names (“Alaska Standard Time”, “Hawaii Standard Time”) but are abbreviated; let’s do the same for Alberta.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Saidbek

[Rename Alberta Time zone mapping to Alberta](/rails/rails/pull/58321/commits/ab9c16236c92ee32d35f02426e61f1e642fcd641 "Rename Alberta Time zone mapping to Alberta Match the short place-name style used by neighboring entries (Hawaii, Alaska, Arizona, Saskatchewan, Mazatlan).") …

[ab9c162](/rails/rails/pull/58321/commits/ab9c16236c92ee32d35f02426e61f1e642fcd641)

Match the short place-name style used by neighboring entries (Hawaii, Alaska, Arizona, Saskatchewan, Mazatlan).

guilleiguaran

guilleiguaran approved these changes Aug 12, 2026

View reviewed changes

Hide details View details

@guilleiguaran

guilleiguaran merged commit dd980d4 into rails:main Aug 12, 2026

4 of 5 checks passed

Uh oh!

There was an error while loading. Please reload this page.

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

### Reviewers

@guilleiguaranguilleiguaran guilleiguaran approved these changes

Assignees

No one assigned

Labels

activesupport

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

ActiveSupport::TimeZone mapping no longer accurate

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@Saidbek@adamhollett @jstanley0 @guilleiguaran

Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

© 2026 GitHub, Inc.

You can’t perform that action at this time.

Highlights & notes

    Notes