Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle time zones in published/updated mf2 values #430

Closed
snarfed opened this issue Oct 30, 2023 · 2 comments
Closed

Handle time zones in published/updated mf2 values #430

snarfed opened this issue Oct 30, 2023 · 2 comments

Comments

@snarfed
Copy link
Contributor

snarfed commented Oct 30, 2023

It looks like time zones in published microformats2 values are currently ignored...? Looking at @sknebel's ("Anonymous"'s) and Scott Jenson's webmentions on https://snarfed.org/2023-10-30_51256#comments, their source mf2 both have dt-published values in UTC, ie they end with +00:00, but the plugin ignored that and uses their times directly in my WordPress's local time zone of Los Angeles (PT).

Specifically, here are the two dt-published values and source URLs:

I don't know whether this regressed in 5.x or time zones were never supported at all. #415 is loosely related. Thanks in advance!

@dshanske
Copy link
Collaborator

The code pulls in the date and then formats it to store on the WordPress database.. which omits the timezone offset... but forgot to convert it to the site timezone.

@dshanske
Copy link
Collaborator

Resolved via #432

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

No branches or pull requests

2 participants