Skip to content

fix(settings): display birthday correctly regardless of browsers timezone#61586

Open
odzhychko wants to merge 2 commits into
masterfrom
BirthdaySection-timezone
Open

fix(settings): display birthday correctly regardless of browsers timezone#61586
odzhychko wants to merge 2 commits into
masterfrom
BirthdaySection-timezone

Conversation

@odzhychko

@odzhychko odzhychko commented Jun 25, 2026

Copy link
Copy Markdown

Summary

Display birthday correctly regardless of browsers timezone.

Before

Screen.Recording.2026-06-25.at.09.48.23.mov

After

Screen.Recording.2026-06-25.at.09.50.04.mov

Checklist

@odzhychko odzhychko added this to the Nextcloud 34.0.2 milestone Jun 25, 2026
@odzhychko odzhychko added bug 3. to review Waiting for reviews labels Jun 25, 2026
`savePrimaryAccountProperty` does only allow  `string | boolean`.
Incidentally, relying on `@nextcloud/axios` default serialization, `Date`s where serialized using `toISOString`.
See https://github.com/axios/axios/blob/a7d7a714498452e611943d9d8e5c2ed8b00aa6b9/lib/helpers/toFormData.js#L134

This change corrects the usage of `savePrimaryAccountProperty` and makes serialization explicit.

Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
@odzhychko odzhychko force-pushed the BirthdaySection-timezone branch from 9370ac9 to 08e0100 Compare June 25, 2026 09:05
@odzhychko

Copy link
Copy Markdown
Author

/backport to stable34

@odzhychko

Copy link
Copy Markdown
Author

/backport to stable33

@odzhychko

Copy link
Copy Markdown
Author

/backport to stable32

@odzhychko odzhychko marked this pull request as ready for review June 25, 2026 10:39
@odzhychko odzhychko requested review from a team as code owners June 25, 2026 10:39
@odzhychko odzhychko requested review from nfebe, sorbaugh and susnux and removed request for a team June 25, 2026 10:39
Comment thread apps/settings/src/components/PersonalInfo/BirthdaySection.vue Outdated
Comment thread apps/settings/src/components/PersonalInfo/BirthdaySection.vue Outdated
Comment thread package.json Outdated
Comment thread apps/settings/src/components/PersonalInfo/BirthdaySection.spec.js Outdated
…zone

This also avoid shifting dates after user input.

Resolves #49828

Signed-off-by: Oleksandr Dzhychko <hey@oleks.dev>
@odzhychko odzhychko force-pushed the BirthdaySection-timezone branch from 08e0100 to 6cdae3c Compare June 26, 2026 15:18
@odzhychko odzhychko requested a review from susnux June 26, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: entered date is shifted back one day in Birthday

2 participants