Skip to content

Conversation

mkurz
Copy link
Contributor

@mkurz mkurz commented Sep 5, 2025

Summary

Safari 14.1 and newer displays a time picker for datetime-local.
datetime-local was not working correctly in one of the Safari tech previews but was fixed before the final 14.1 release.

Test results and supporting details

See the Safari 14.1 release note (https://developer.apple.com/documentation/safari-release-notes/safari-14_1-release-notes)

Added support for HTML date, time, and datetime-local input types in macOS, enabling date and time controls in forms.

This is confirmed by the according issue (comment 27): https://bugs.webkit.org/show_bug.cgi?id=214946#c27

More confirmations:

A jsfiddle to test yourself: https://jsfiddle.net/8gw2yk5e/

Related issues

@github-actions github-actions bot added data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML size:xs [PR only] 0-6 LoC changed labels Sep 5, 2025
Copy link
Contributor

github-actions bot commented Sep 5, 2025

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@caugner
Copy link
Contributor

caugner commented Sep 5, 2025

This is confirmed by the according issue (comment 27): bugs.webkit.org/show_bug.cgi?id=214946#c27

That comment only mentions the date picker, not the time picker.

Testing in Safari 14.1 confirms the time picker isn't shown:

image

@@ -33,8 +33,7 @@
"version_added": "11"
},
"safari": {
"version_added": "14.1",
"notes": "Safari only displays a date picker and does not display a time picker."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of removing this note, we need to find out in which version this was fixed, and add the prefix "Before Safari x, ...".

@mkurz
Copy link
Contributor Author

mkurz commented Sep 5, 2025

crazy, the screenshot in Fyrd/caniuse#5646 (comment) shows the time picker...

@caugner
Copy link
Contributor

caugner commented Sep 5, 2025

crazy, the screenshot in Fyrd/caniuse#5646 (comment) shows the time picker...

I don't see a time picker in those screenshots, only time fields.

@caugner caugner marked this pull request as draft September 5, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML size:xs [PR only] 0-6 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants