Skip to content

fix(DateField): prevent time from going to AM when PM selected and the time changes - #2077

Closed
ieedan wants to merge 1 commit into
huntabyte:mainfrom
ieedan:date-field-fix
Closed

ieedan wants to merge 1 commit into
huntabyte:mainfrom
ieedan:date-field-fix

Conversation

@ieedan

@ieedan ieedan commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Filing this as a bug report / initial step for a fix.

This was the bug I was running into:

Whenever you change the hour and PM is selected the time will change to AM

Video reproduction from the docs below

CleanShot.2026-06-16.at.15.01.52.mp4

I had Cursor pnpm patch this fix into my project and it worked but I don't really understand it fully atm and don't really want to put the effort to cause I am working on other stuff

Just gonna open this as a draft so at one point we can get it across the finish line

@changeset-bot

changeset-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8038cec

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actions Bot commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor
built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
bits-ui ✅ Ready (View Log) Visit Preview 8038cec

@huntabyte

Copy link
Copy Markdown
Owner

Superseded by #2228, which fixed the PM/AM bug on main (and covers Backspace, Tab, blur, ArrowUp and DateRangeField). Thanks for the start on this!

@huntabyte huntabyte closed this Oct 23, 2026
@ieedan
ieedan deleted the date-field-fix branch October 23, 2026 01:23

This branch was successfully deployed

1 active deployment
Preview — 8038cec3 Deployed Jun 16, 2026 by github-actions[bot]
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.

2 participants