Skip to content

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

@truptikanzariya

Description

@truptikanzariya

Description

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

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.

Step-by-step reproduction instructions

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.

Screenshots, screen recording, code snippet

Image Image
Dashboard.test-wordpress.WordPress.webm

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs DecisionNeeds a decision to be actionable or relevant[Package] Components/packages/components[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions