[wp-trac] [WordPress Trac] #41032: REST API: Date fields do not support ISO8601

WordPress Trac noreply at wordpress.org
Thu Feb 6 14:31:17 UTC 2025


#41032: REST API: Date fields do not support ISO8601
--------------------------------------+-----------------------------
 Reporter:  jnylen0                   |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  REST API                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-unit-tests has-patch  |     Focuses:  docs, rest-api
--------------------------------------+-----------------------------

Comment (by andronocean):

 One small note: the code comment on `rest_parse_date()` currently says
 that it accepts a date string in RFC3339 format, but that's not entirely
 accurate. RFC3339 is case-insensitive, while the function's regex only
 matches a capital `Z` for the timezone segment. Hence valid strings like
 `2025-02-06t14:26:23z` will be rejected.

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


More information about the wp-trac mailing list