Skip to content

localized date metatag - #35

Merged
orzocogorzo merged 1 commit into
mainfrom
feat/wp-date-metatag
Aug 7, 2026
Merged

localized date metatag#35
orzocogorzo merged 1 commit into
mainfrom
feat/wp-date-metatag

Conversation

@orzocogorzo

Copy link
Copy Markdown
Contributor

Date metatags works with built-in PHP function date. This function is affected by runtime timezones.

At the same time, WordPress has the timezone_string and gmt_offset options to allow WordPress timezone to be decoupled from system timezones, and functions like wp_date to get localized dates.

This PR switches from built-in date functions to WP date functions to make date metatags compliant with the WordPress timezone.


In response to The Meta Tag “datetime” outputs UTC Time instead of the time in my time zone.

@orzocogorzo orzocogorzo self-assigned this Aug 7, 2026
@orzocogorzo
orzocogorzo merged commit 4bd662b into main Aug 7, 2026
@orzocogorzo
orzocogorzo deleted the feat/wp-date-metatag branch August 7, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant