Make WordPress Core

Opened 8 weeks ago

Last modified 3 weeks ago

#52664 new feature request

Sort order of datetime picker's date items

Reported by: tmatsuur Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: ui, javascript Cc:


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)

trac20210226_01a.png (10.9 KB) - added by tmatsuur 8 weeks ago.
52664.diff (7.7 KB) - added by tmatsuur 5 weeks ago.
52664-2.diff (9.1 KB) - added by tmatsuur 3 weeks ago.

Download all attachments as: .zip

Change History (6)

#1 @tmatsuur
8 weeks ago

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?

5 weeks ago

#2 @tmatsuur
5 weeks ago

I made a patch for version 5.7.0.

3 weeks ago

#3 @tmatsuur
3 weeks ago

The patch file has been updated because the display contents have been adjusted.

Note: See TracTickets for help on using tickets.