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: |
|
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:
- Go to Dashboard → Settings → General
- Set Time Format to:
g:i a - Open the Block Editor (Gutenberg)
- 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.
Attachments (3)
Change History (4)
Note: See
TracTickets for help on using
tickets.
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.