Skip to content

Commit

Permalink
Simplify suggested date formats
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Mar 11, 2022
1 parent 3727d5f commit ba74a6b
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,12 @@ function CustomControls( { format, onChange } ) {
// languages will use the same format string for short, medium, and long
// formats.
const suggestedFormats = uniq( [
'Y-m-d',
_x( 'n/j/Y', 'short date format' ),
_x( 'M j, Y', 'medium date format' ),
_x( 'F j, Y', 'long date format' ),
_x( 'l, F j, Y', 'full date format' ),
_x( 'n/j/Y g:i A', 'short date format with time' ),
_x( 'M j, Y', 'medium date format' ),
_x( 'M j, Y g:i A', 'medium date format with time' ),
_x( 'F j, Y g:i A', 'long date format with time' ),
'Y-m-d',
_x( 'F j, Y', 'long date format' ),
] );

const suggestedOptions = suggestedFormats.map(
Expand Down

0 comments on commit ba74a6b

Please sign in to comment.