#52664 closed defect (bug) (reported-upstream)
Sort order of datetime picker's date items
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | |
Focuses: | ui, javascript | Cc: |
Description
I thought about the sort order of the date items in the datetime picker to be in the same order as the format specification that is set.
Currently, the date field is displayed in the order of "Day", "Month", and "Year" when the time format is a 12-hour clock, and "Month", "Day", and "Year" when it is a 24-hour clock.
If the date format is in the order of "Year", "Month", and "Day", such as "Y-m-d", it would be more comfortable if the items for each of "Year", "Month", and "Day" were also in the same order.
Attachments (3)
Change History (8)
#4
@
4 years ago
- Milestone Awaiting Review deleted
- Resolution set to reported-upstream
- Status changed from new to closed
- Type changed from feature request to defect (bug)
This was reported on GitHub, too: https://github.com/WordPress/gutenberg/issues/17970
Thanks for creating patches! Because this is within the block editor, though, the correction will involve editing the React file(s) in a pull request. If you're interested in doing that and/or continuing the discussion, please comment on the GitHub issue.
I can fix it by modifying editor.js and components.js, but there are differences between 5.6.2 and 5.7 RC1, so I can't make a common patch.
If I attach a patch, which version should I target?