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

WordPress Trac noreply at wordpress.org
Fri Nov 15 02:29:30 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 steevithak):

 >> Could you please give a specific example including:

 >> What is your time zone in settings

  CentOS 7.7.1908
  OS Timezone: UTC

  PHP 7.3.11-1
  via phpinfo():
  date/time support      enabled
  timelib version        2018.02
  "Olson" Timezone Database Version      0.system
  Timezone Database      internal
  Default timezone       America/Chicago

  WordPress
  Admin -> Settings -> General Settings -> Timezone: UTC-6
  Displayed below the setting is this example timestamp, which is correct:
  "Universal time is 2019-11-15 02:04:11. Local time is 2019-11-14
 20:04:11"

  In answer to @archon810, I found this in the themes functions.php:
  date_default_timezone_set("America/Chicago")

 >> What are the post_date and post_date_gmt values in database
  Not sure what the best way is to find out that info. I haven't worked
 with MySQL in a while!

 >> What the old permalink was
 >> What the current permalink is

 I'm unsure about new vs old in this context, so how about these, which you
 can try out on the live site:

 The working permalink URL that the blog post was created with at the time
 of its creation and can be used to view the post in a web browser:

  https://www.steevithak.com/2018/07/22/ecotopia-by-ernest-callenbach/

 The non-working permalink URL that get_permalink() returns as of WP 5.3
 and that results in a 404 error:

  https://www.steevithak.com/2018/07/23/ecotopia-by-ernest-callenbach/

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


More information about the wp-trac mailing list