[wp-meta] [Making WordPress.org] #4480: Event API returns date/time information without timezone

Making WordPress.org noreply at wordpress.org
Tue Aug 25 05:09:08 UTC 2020


#4480: Event API returns date/time information without timezone
-------------------------+-----------------------
 Reporter:  Rarst        |       Owner:  iandunn
     Type:  enhancement  |      Status:  accepted
 Priority:  high         |   Milestone:
Component:  Events API   |  Resolution:
 Keywords:               |
-------------------------+-----------------------

Comment (by Rarst):

 Ok, correct conversion of a local time string into timestamp would be
 something like `$datetime = date_create( $date, wp_timezone()
 )->getTimestamp();` in core. Having a meaningful time zone string there is
 preferable to offset (because summer time craziness and stuff).

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/4480#comment:16>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list