Skip to content

date: add MEZ and MESZ timezone abbreviations#11043

Closed
aguimaraes wants to merge 1 commit intouutils:mainfrom
aguimaraes:date-mez-mesz-timezone
Closed

date: add MEZ and MESZ timezone abbreviations#11043
aguimaraes wants to merge 1 commit intouutils:mainfrom
aguimaraes:date-mez-mesz-timezone

Conversation

@aguimaraes
Copy link
Contributor

Summary

German timezone abbreviations MEZ (Mitteleuropäische Zeit) and MESZ (Mitteleuropäische Sommerzeit) are not recognized by date -d, while GNU coreutils accepts them.

This adds both abbreviations to the PREFERRED_TZ_MAPPINGS table, mapping them to Europe/Berlin.

Fixes #11015

Test plan

  • Added test_date_tz_abbreviation_german_timezones covering both MEZ and MESZ
  • cargo test --features date --no-default-features -- test_date_tz_abbreviation passes

@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/pr/bounded-memory (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/date/date-locale-hour is no longer failing!

@aguimaraes
Copy link
Contributor Author

Note: #11045 is a broader fix that also covers MEZ/MESZ. If that one gets merged first, this PR can be closed. Keeping this one open as a simpler alternative in case the larger refactor needs more discussion.

@cakebaker
Copy link
Contributor

Closing this PR as its change is included in #11045

@cakebaker cakebaker closed this Feb 21, 2026
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.

date: MEZ is not recognized

2 participants