Skip to content

[6.x] Fix editing date fields displayed in a timezone other than the browser's - #15500

Merged
jasonvarga merged 3 commits into
6.xfrom
date-picker-timezone-editing
Sep 22, 2026
Merged

jasonvarga merged 3 commits into
6.xfrom
date-picker-timezone-editing

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where the AM/PM segment of a date field would flip on every edit when the field's timezone differs from the browser's timezone.

This was happening because reka-ui derived the day period from the browser's timezone rather than the ZonedDateTime's own timezone, so typed hours were interpreted with the wrong period. It has been fixed upstream in unovue/reka-ui#2953, so this PR bumps reka-ui to 2.10.5.

This PR also fixes an issue where typing a time into a range date field would save it in the browser's timezone rather than the field's. This was happening because the range picker always passed a browser-local default-placeholder, which reka-ui uses as the base for typed values. I've fixed it by only passing the placeholder when there's no value, so reka-ui falls back to the range's start date instead.

Fixes #15481

duncanmcclean and others added 2 commits September 22, 2026 10:36
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
modelValue?.start alone left an end-only range falling back to the
browser-local placeholder, reintroducing the day-period bug for that case.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jasonvarga
jasonvarga merged commit b534303 into 6.x Sep 22, 2026
64 checks passed
@jasonvarga
jasonvarga deleted the date-picker-timezone-editing branch September 22, 2026 20:43
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 fields with 12 hour time flip-flopping between AM/PM on change

2 participants