Skip to content

[6.x] Hide seconds in date picker timezone hover card unless enabled - #15804

Open
joshuablum wants to merge 1 commit into
6.xfrom
hide-timezone-tooltip-seconds
Open

joshuablum wants to merge 1 commit into
6.xfrom
hide-timezone-tooltip-seconds

Conversation

@joshuablum

Copy link
Copy Markdown
Member

The timezone hover card on date fields always shows seconds, even when "Show Seconds" is disabled. Because they can't be edited in the field, they look random. For example, "Add Date" fills in the current time including seconds, which are only dropped once the entry is saved.

This adds a showSeconds prop to Timezones and TimezoneHoverCard. It defaults to true, so existing usages are unchanged. The date and date range pickers now only show seconds when their granularity is second.

Before
image

After
image

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant