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

WordPress Trac noreply at wordpress.org
Sat Nov 16 03:33:15 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:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by steevithak):

 I've commented out the call to date_default_timezone_set() and so far, all
 the URLs coming from get_permalink() seem to match the actual blog posts
 dates and URLs again. I'll continue checking and report back if I find
 anything wrong. Thanks for your help diagnosing this!

 I wonder if it might make sense to add a check for this problem to Tools
 -> Site Health? A simple shell command like 'ack
 date_default_timezone_set' or 'grep -r date_default_timezone_set *' in the
 doc root directory would do it.

 Interestingly, I found that the twitter plugin I use, "WP to Twitter",
 also calls this function but with the argument 'UTC' so I think it's safe
 to leave that one.

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


More information about the wp-trac mailing list