[wp-trac] [WordPress Trac] #36129: Post dates with invalid ISO8601 timezone offsets are returned from the HTTP API

WordPress Trac noreply at wordpress.org
Sun Mar 6 23:01:17 UTC 2016


#36129: Post dates with invalid ISO8601 timezone offsets are returned from the HTTP
API
--------------------------+-----------------------------
 Reporter:  dblockow      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The HTTP API occasionally returns posts with an invalid ISO8601 timezone
 offset, for example: 2007-07-13T08:08:00+328972:08. Most date libraries
 fail to parse this as a valid ISO8601 string.

 Here is an example API request returning an invalid date value: https
 ://public-
 api.wordpress.com/rest/v1.1/sites/cdavies.wordpress.com/posts/792

 Here is the corresponding post in the web UI (the date is rendered
 correctly): https://cdavies.wordpress.com/2007/07/13/friday-food-fables-3/

 The example site is not mine so I'm unsure how the posts were created.
 Ideally it shouldn't be possible to store a post with an invalid date or
 return an invalid date from the API.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36129>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list