Bug 239778

Summary: Datetime-local Field Picker Shows Incorrect Date
Product: WebKit Reporter: me
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: akeerthi, cdumez, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: All   
OS: macOS 12   
Attachments:
Description Flags
Preview of bug none

me
Reported 2022-04-26 10:59:42 PDT
Created attachment 458380 [details] Preview of bug It seems the datetime-local field type has a bug where if the seconds end in :00, when you click into the field and it shows the calendar popup it defaults to Dec 2000 w/ Jan 1 2001 selected. If you use any seconds beyond :00, it works fine. JSFiddle attached, example uses `<input type="datetime-local" value="2017-05-12T19:30:00" step="1">` to show the error. https://jsfiddle.net/vwyk05gj/
Attachments
Preview of bug (122.55 KB, image/png)
2022-04-26 10:59 PDT, me
no flags
me
Comment 1 2022-04-26 11:00:16 PDT
(Submitted via Feedback also, FB9996513)
Aditya Keerthi
Comment 2 2022-04-26 11:30:02 PDT
Mike Wyrzykowski
Comment 3 2022-06-07 13:04:56 PDT
EWS
Comment 4 2022-06-07 17:27:38 PDT
Committed r295369 (251377@main): <https://commits.webkit.org/251377@main> Reviewed commits have been landed. Closing PR #1355 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.