Skip to content

Date Block: Format options can have latest date #69242

@Rishit30G

Description

@Rishit30G

Description

In the ‘Date Block,’ the current date formats available in the block settings panel are example dates. However, it would be more intuitive and enhance the user experience to display the latest date instead. This ensures synchronisation when working with real-time content, as most of the users tend to add this block when working with the post before publishing, so getting to see the current date that they are going to place from the dropdown makes sense.

Additionally, it improves the display of relative timestamps (e.g., “a second ago,” “2 minutes ago”), aligning them with the actual post update time for a more cohesive experience.

Step-by-step reproduction instructions

  1. Add a new post
  2. Insert a Date Block
  3. In the block's settings panel, locate the Choose a format option.
  4. Click on the dropdown to reveal various date format options.
  5. Notice that the options shown don't have the latest date/time.

Screenshots, screen recording, code snippet

Image

Environment info

  • WordPress 6.7.2
  • Gutenberg 20.3.0-rc.2
  • Mac OS
  • Chrome

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions