Make WordPress Core

Opened 8 hours ago

Last modified 2 hours ago

#65326 new defect (bug)

Gutenberg publish panel does not respect lowercase a in g:i a time format.

Reported by: truptikanzariya's profile truptikanzariya Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Editor Keywords: needs-testing has-screenshots close
Focuses: javascript, administration Cc:

Description

The Gutenberg publish/schedule panel does not fully respect the site's configured.

Steps to Reproduce:

  1. Go to Dashboard → Settings → General
  2. Set Time Format to: g:i a
  3. Open the Block Editor (Gutenberg)
  4. Check the Publish/Schedule panel time selector.

Expected Result:
The time selector should display lowercase am/pm because the selected PHP time format uses lowercase a.

Example:
12:32 pm

Actual Result:
The Gutenberg publish panel displays uppercase AM/PM instead.

Example:
12:32 PM

Additional Notes:

When using g:i A, uppercase AM/PM is correct.
When using H:i, the editor should use 24-hour format without AM/PM.

Change History (4)

#1 @jorbin
2 hours ago

  • Component changed from Date/Time to Editor
  • Keywords close added
  • Version 7.0 deleted

I've tested on older versions, this was not introduced in 7.0 so removing the version.

Issues for the editor screen are managed in the gutenberg repo. Can you please report this issue there? Once that has been done, this can be closed as reported-upstream.

Note: See TracTickets for help on using tickets.