Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#38986 closed defect (bug) (duplicate)

WP-API - List posts: `before` and `after` doesn't seem to support true ISO 8601

Reported by: laustdeleuran's profile LaustDeleuran Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6.1
Component: REST API Keywords:
Focuses: Cc:


Originally posted on WP-API's GitHub - Reposting here as [requested by Edwin Cromley](

Opening this endpoint:

Tells me that The date you provided is invalid.. However, I _am_ providing a [ISO 8601 compliant]( date, as [according to]( the [documentation](

It looks like providing a full date (with time), makes the endpoint work as expected:

Maybe the documentation needs to be updated to reflect that?

Change History (5)

This ticket was mentioned in Slack in #core-restapi by chopinbach. View the logs.

7 years ago

#2 @LaustDeleuran
7 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #38641.

Looks like this is a duplicate of

#3 in reply to: ↑ description @jnylen0
7 years ago

Hi @LaustDeleuran - I agree that #38641 is the right place to track this, but one angle that is not covered there is that our documentation implies full ISO8601 compliance.

Would you mind leaving a comment over there to that effect? This will help us prioritize this issue as it's currently labeled as an enhancement without any mention of the incorrect docs.

#4 @netweb
7 years ago

  • Milestone Awaiting Review deleted

#5 @LaustDeleuran
6 years ago

@jnylen0 didnt get any notifications about this issue, so forgot about it, but just ran into it again on another project. Reposting the details from this on #38641 as you suggested.

Note: See TracTickets for help on using tickets.