Skip to content

Comment Date: Editor shows the raw date instead of the formatted date #87108

Open

Description

@SainathPoojary

Description

In the editor, the Comment Date block shows the raw date text (for example 2026-11-19T10:00:00) instead of a formatted date. It is expected to show a date like November 19, 2026, as it does on the front end.

The Date format setting in the block sidebar, including "human-diff"( 3 months ago ) , also has no effect on the canvas.

Step-by-step reproduction instructions

  1. Create a post, publish it, and add a comment to it on the front end.
  2. Add a Comments block in the editor. Make sure the post you are editing is the one with the comment. The default Comment Template includes a Comment Date block.
  3. Look at the Comment Date block in the editor. It shows 2026-11-19T10:00:00.
  4. Select the block and change the Date format in the sidebar. The canvas does not change.
  5. Open the post on the front end. It shows the formatted date (November 19, 2026).

Screenshots, screen recording, code snippet

2026-11-19.23-43-57.mp4

Environment info

  • WordPress: 7.2-alpha-64498
  • Subdirectory: No
  • PHP: 8.3.35
  • Server: Apache/2.4.68 (Debian)
  • Database: mysqli (Server: 12.3.3-MariaDB-ubu2404 / Client: mysqlnd 8.3.35)
  • Browser: Chrome 157.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.5
  • MU Plugins: None activated
  • Plugins:
    • Gutenberg 24.5.0-rc.1
    • Test Reports 1.3.1

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions