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

Update get_the_date() to use DATE_W3C #685

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

bradp
Copy link
Contributor

@bradp bradp commented Jun 16, 2021

DESCRIPTION

from upstream _s:

get_the_date( 'c' ) will return the post date, which appears to be in local time (per the timezone setting), except that it appends +00:00. Therefore, it's technically the wrong time. Using DATE_W3C as the date format renders in the same format but appends the correct offset.

Also see: https://core.trac.wordpress.org/ticket/20973

OTHER

  • Is this issue accessible? (Section 508/WCAG 2.0AA)
  • Does this issue pass all the linting? (PHPCS, ESLint, SassLint)
  • Does this pass CBT?

@bradp bradp requested a review from coreymcollins as a code owner June 16, 2021 00:09
@bradp
Copy link
Contributor Author

bradp commented Jun 16, 2021

@gregrickaby gregrickaby merged commit 130892c into main Jun 16, 2021
@gregrickaby gregrickaby deleted the fix/use-DATE-W3C-in-posted-on branch June 16, 2021 15:17
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.

2 participants