[wp-trac] [WordPress Trac] #48623: WP 5.3 time problem causes day number shifts in permalinks

WordPress Trac noreply at wordpress.org
Thu Nov 14 20:40:04 UTC 2019


#48623: WP 5.3 time problem causes day number shifts in permalinks
--------------------------+---------------------
 Reporter:  steevithak    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.3.1
Component:  Date/Time     |     Version:  5.3
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------

Comment (by archon810):

 I'll add this piece of data, and maybe @steevithak can chime in as well.

 Our servers are on PST. And at some point during the last 10 years, there
 were manual calls added to WP theme code that run

 {{{
 date_default_timezone_set(get_option('timezone_string'));
 }}}

 in functions.php.

 This option is set to "America/Los_Angeles" in `wp_options`.

 With this setup, as @steevithak noted, the times in the Posts area are
 correct (in PST).

 But under the Revisions list on the edit post page, the "Bla edited N
 hours ago" list is wrong and has the wrong offsets for us.

 Also under `wp-admin/options-general.php`, the times are incorrect as
 well:
 [[Image(https://i.imgur.com/nxRfCzy.png)]]

 The time right now is actually 12:38 PM Pacific Time.

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


More information about the wp-trac mailing list