Skip to content

Fix schema timezone handling for datePublished and dateModified#23190

Open
meravi wants to merge 1 commit into
Yoast:trunkfrom
meravi:meravi/fix-schema-timezone-23153
Open

Fix schema timezone handling for datePublished and dateModified#23190
meravi wants to merge 1 commit into
Yoast:trunkfrom
meravi:meravi/fix-schema-timezone-23153

Conversation

@meravi
Copy link
Copy Markdown
Contributor

@meravi meravi commented Apr 22, 2026

#23153.

Summary

  • add a schema-specific date formatter that converts GMT post dates into the site timezone
  • update schema Article and WebPage generators to use the site timezone for datePublished and dateModified
  • add and update unit tests for the helper and schema generators

Testing

  • composer test -- --filter Date_Helper_Test
  • composer test -- --filter Article_Test
  • composer test -- --filter WebPage_Test
  • composer test -- --filter Schema_Generator_Test

Props ravikhadka

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants