[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:42:55 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 Rarst):
I did a quick check and under normal circumstances `date()` and `gmdate()`
calls in that place are equivalent. As they should be.
If they are not please double check that your default PHP timezone
(`date_default_timezone_get()`) isn't modified from UTC, which WP sets it
to on boot.
This might be a case where two bugs compounded to "correct" result, but
now that ''one'' of them is fixed it's breaking.
@archon810
Ah, and the evidence trickling in. :) Do not use
`date_default_timezone_set()` in WordPress, it's broken and had always
been.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48623#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list