[wp-trac] [WordPress Trac] #42145: get_timezone_info() refers to GMT instead of UTC

WordPress Trac noreply at wordpress.org
Sun Oct 8 08:56:09 UTC 2017


#42145: get_timezone_info() refers to GMT instead of UTC
--------------------------+------------------------------
 Reporter:  tobifjellner  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------
Changes (by swissspidy):

 * keywords:   => needs-patch
 * component:  Date/Time => Customize


Old description:

> 4.9.0 introduces get_timezone_info() in wp-includes/customize/class-wp-
> customize-date-time-control.php
>
> Unfortunately, the code in this function makes several references to GMT,
> when actually UTC is meant.
> The texts, like GMT-offset, etc. should be corrected to UTC.
> If possible, then it would be good to also change the names of variables
> in similar way.
>
> UTC is our coordinated international time that we use all the time.
> GMT is a factually measured time when sun passes noon over the zero
> meridian. These two may differ up to one second from each other and leap
> seconds are used to adjust between the two.

New description:

 4.9.0 introduces `get_timezone_info()` in wp-includes/customize/class-wp-
 customize-date-time-control.php

 Unfortunately, the code in this function makes several references to GMT,
 when actually UTC is meant.
 The texts, like GMT-offset, etc. should be corrected to UTC.
 If possible, then it would be good to also change the names of variables
 in similar way.

 UTC is our coordinated international time that we use all the time.
 GMT is a factually measured time when sun passes noon over the zero
 meridian. These two may differ up to one second from each other and leap
 seconds are used to adjust between the two.

--

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


More information about the wp-trac mailing list