[wp-trac] [WordPress Trac] #60184: Publication date 01/01/1970 is refused

WordPress Trac noreply at wordpress.org
Sat Aug 31 05:52:23 UTC 2024


#60184: Publication date 01/01/1970 is refused
-------------------------------------------------+-------------------------
 Reporter:  emmanuel78                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Editor                               |     Version:  6.4.2
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:  rest-api
  testing                                        |
-------------------------------------------------+-------------------------
Changes (by siliconforks):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests needs-
     testing


Comment:

 Here is an easy way to reproduce this issue using only the command line:

 {{{
 curl \
   -X POST WORDPRESS_URL/wp-json/wp/v2/posts \
   -u 'USERNAME:APPLICATION_PASSWORD' \
   -H 'Content-Type: application/json; charset=UTF-8' \
   -d '{"title":"Post created via REST
 API","date_gmt":"1970-01-01T00:00:00Z"}'
 }}}

 Change:

 * WORDPRESS_URL to the URL of your WordPress installation
 * USERNAME to your WordPress admin username (or at least some user with
 the capability of creating posts)
 * APPLICATION_PASSWORD to an application password for that user

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60184#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list