Skip to content

fix(core): accept deprecated IANA timezone aliases - #63752

Merged
pringelmann merged 2 commits into
masterfrom
fix/accept-legacy-timezone-aliases
Aug 28, 2026
Merged

fix(core): accept deprecated IANA timezone aliases#63752
pringelmann merged 2 commits into
masterfrom
fix/accept-legacy-timezone-aliases

Conversation

@pringelmann

Copy link
Copy Markdown
Contributor

Summary

Fixes a bug where legacy timezone identifiers sent by browsers get silently rejected.

PHP's listIdentifiers() defaults to ALL, which skips the tz database's backward links. So many older but valid names get refused, Europe/Kiev among them, even though PHP itself resolves them without complaint. Many browsers still send the old names.

Two places got this wrong:

  • The provisioning API throws a 400
  • SetUserTimezoneCommand quietly drops the value at login

Both use ALL_WITH_BC now. Read requests already accepted these names, so this fixes write request cases.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI (tests)

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann pringelmann added this to the Nextcloud 36 milestone Aug 28, 2026
@pringelmann pringelmann self-assigned this Aug 28, 2026
@pringelmann
pringelmann requested a review from a team as a code owner August 28, 2026 08:21
@pringelmann pringelmann added bug 3. to review Waiting for reviews labels Aug 28, 2026
@pringelmann
pringelmann requested review from Altahrim and icewind1991 and removed request for a team August 28, 2026 08:21
@pringelmann pringelmann added the feature: profile PRs or issues related to the Profile feature (e.g. Profile page, API, etc.) label Aug 28, 2026
@pringelmann pringelmann added the team: IDP Code maintained by 🪪 IDP team label Aug 28, 2026
@pringelmann
pringelmann requested a review from artonge August 28, 2026 08:22
@pringelmann

Copy link
Copy Markdown
Contributor Author

/backport to stable35

@pringelmann

Copy link
Copy Markdown
Contributor Author

/backport to stable34

@pringelmann

Copy link
Copy Markdown
Contributor Author

/backport to stable33

@pringelmann

Copy link
Copy Markdown
Contributor Author

fixing tests: they work locally, but CI runner OS does not have legacy tzdata

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@pringelmann
pringelmann requested a review from CarlSchwan August 28, 2026 09:31
@pringelmann
pringelmann merged commit 2c688af into master Aug 28, 2026
205 of 207 checks passed
@pringelmann
pringelmann deleted the fix/accept-legacy-timezone-aliases branch August 28, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: profile PRs or issues related to the Profile feature (e.g. Profile page, API, etc.) team: IDP Code maintained by 🪪 IDP team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants