Wordpress/tests
James Nylen 83d27ba447 REST API: Fix multiple issues with setting dates of posts and comments.
This commit modifies the `rest_get_date_with_gmt` function to correctly parse local and UTC timestamps with or without timezone information.

It also ensures that the REST API can edit the dates of draft posts by setting the `edit_date` flag to `wp_update_post`.

Overall this commit ensures that post and comment dates can be set and updated as expected.

Fixes #39256.


git-svn-id: https://develop.svn.wordpress.org/trunk@40101 602fd350-edb4-49c9-b593-d223f7449a82
2017-02-21 18:17:32 +00:00
..
phpunit REST API: Fix multiple issues with setting dates of posts and comments. 2017-02-21 18:17:32 +00:00
qunit REST API: Include the `status` property in `view` context responses from the Posts endpoints. 2017-02-19 04:31:12 +00:00