Repository navigation
Map new Microsoft time zones for Alberta, Manitoba and British Columbia - #120
Merged
Merged
Conversation
mathroc
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Alberta, Manitoba and British Columbia moved to permanent time on 2026-11-01. Outlook/Exchange now sends invites and calendar exports with new Microsoft time zone names that
TimeZoneUtilcan't resolve:TimeZoneUtil::getTimeZone($tzid, $vcalendar, failIfUncertain: true)throwsWe were unable to determine the correct PHP timezone for tzid: Alberta Standard Time, so callers that parseDTSTARTdrop the event.$failIfUncertain, it silently falls back to the PHP default time zone, so the event lands at the wrong time.Change
Adds to
lib/timezonedata/extrazones.php:Alberta Standard TimeAmerica/EdmontonMountain Time (Alberta)America/EdmontonManitoba Standard TimeAmerica/WinnipegPacific Time (British Columbia)America/VancouverBritish Columbia Standard TimeAmerica/VancouverThe other forms Outlook produces already resolve once the base name is mapped:
Alberta Standard Time 1(numbered variants in Outlook exports), throughFindFromMzVersionTimezone(UTC-06:00) Mountain Time (Alberta)(offset-prefixed display names), through the existing patterns inFindFromTimezoneMapTests
TimeZoneUtilTest::testCanadaPermanentTimeZonescovers 9 forms: each name, the numbered… 1variants and the(UTC±hh:mm) …prefixed variants. All 9 fail without the new entries.vendor/bin/phpunit -c tests/phpunit.xml(3,301 tests),phpstan analyse lib testsandphp-cs-fixer fix --dry-runare green.