[wp-trac] [WordPress Trac] #51761: Inconsistent displayed date in get_calendar()
WordPress Trac
noreply at wordpress.org
Fri Nov 13 09:41:54 UTC 2020
#51761: Inconsistent displayed date in get_calendar()
-------------------------------------------------+-------------------------
Reporter: labbit | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: needs-patch has-screenshots | Focuses:
reporter-feedback |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
Replying to [comment:5 labbit]:
> Does it mean we cannot set Local Timezone in wordpress settings?
No, it's more likely that a plugin or theme changes PHP time zone with
`date_default_timezone_set()`, which is not recommended. See [46797] /
#48692 and [https://make.wordpress.org/core/2019/09/23/date-time-
improvements-wp-5-3/ Date/Time component improvements in WordPress 5.3]
for more details.
* Does the issue still happen with all plugins disabled and a default
theme (Twenty Twenty) activated?
* Do you have a warning like this in Site Health? "PHP default timezone
was changed after WordPress loading by a `date_default_timezone_set()`
function call. This interferes with correct calculations of dates and
times."
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51761#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list