Skip to content

Fix: Remove hardcoded datetime from post-date blocks - #53

Closed
ikamal7 wants to merge 2 commits into
WordPress:trunkfrom
ikamal7:trunk
Closed

ikamal7 wants to merge 2 commits into
WordPress:trunkfrom
ikamal7:trunk

Conversation

@ikamal7

@ikamal7 ikamal7 commented Sep 17, 2026

Copy link
Copy Markdown

Description

The post-date block in all patterns had a hardcoded datetime attribute (2026-08-25T12:32:20.987Z) causing every post to display August 25, 2026 regardless of the actual post date.

Removing the attribute lets the block dynamically render the correct date for each post.

Files changed

All 15 pattern files in patterns/ that use the post-date block.

Testing

  1. Activate the Ipsum theme
  2. View any post, archive, or the homepage
  3. Verify the post date shows the actual post date, not a hardcoded value

Fixes #51

The post-date block in all patterns had a hardcoded datetime attribute
causing every post to display August 25, 2026 regardless of the actual
post date. Removing the attribute lets the block dynamically render the
correct date for each post.

Fixes WordPress#51
@github-actions github-actions Bot added [Area] Patterns Issues or PRs that touch the theme's block patterns. First-time Contributor Pull request opened by a first-time contributor to the repository labels Sep 17, 2026
@github-actions

Copy link
Copy Markdown

👋 Thanks for your first pull request, @ikamal7! We'll take a look soon.

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: ikamal7 <ikamal@git.wordpress.org>
Co-authored-by: juanfra <juanfra@git.wordpress.org>
Co-authored-by: maxinacube <maxinacube@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@juanfra

juanfra commented Sep 18, 2026

Copy link
Copy Markdown
Member

Thanks for the PR @ikamal7!

This was fixed in #52 and already merged. I'm closing this one as duplicate.

@juanfra juanfra closed this Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Area] Patterns Issues or PRs that touch the theme's block patterns. First-time Contributor Pull request opened by a first-time contributor to the repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hardcoded post-date in patterns show incorrect data

2 participants