[wp-trac] [WordPress Trac] #48623: WP 5.3 time problem causes day number shifts in permalinks
WordPress Trac
noreply at wordpress.org
Mon Nov 18 10:45:29 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: critical | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by Rarst):
> Now, this isn't necessarily a plugin conflict problem, because even when
date_default_timezone_get() isn't used, PHP still has this configuration
setting: date.timezone.
Ini setting is irrelevant to WordPress because it explicitly sets default
time zone to `UTC` during core load.
This is absolutely the issue with third party code using
`date_default_timezone_set()`, which was never supported by WordPress due
to the way it originally implemented Date/Time calculations. Unfortunately
this is very old and quite obscure issue, developers are rarely well
familiar with.
We are not reverting `gmdate()` change because core-wide it's meant
exactly to ''prevent'' PHP time zone change breaking things all over. That
work is just far from complete due to enormous amount of ancient Date/Time
code in core.
I have already suggested the patch for `get_permalink()` issue. Please let
me know if you discover it's lacking to address the problem in some way.
We wouldn't go with any manipulation of timestamp because the current
course is to remove and deprecate operating with sums of timestamp and
offsets in core.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48623#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list