[wp-trac] [WordPress Trac] #37440: current_time function outputs local time when it should output GMT time

WordPress Trac noreply at wordpress.org
Fri Jul 22 11:06:26 UTC 2016


#37440: current_time function outputs local time when it should output GMT time
--------------------------+------------------------------
 Reporter:  bynicolas     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:  4.5.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi @bynicolas, welcome to Trac!

 [source:tags/4.5.3/src/wp-includes/functions.php#L68 Line 68] looks
 correct to me as is. WordPress works with dates in UTC internally, see
 [source:tags/4.5.3/src/wp-settings.php#L51 wp-settings.php].

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


More information about the wp-trac mailing list