[wp-trac] [WordPress Trac] #48625: The post publish time in wp-admin/post.php appears in UTC
WordPress Trac
noreply at wordpress.org
Thu Nov 14 17:23:59 UTC 2019
#48625: The post publish time in wp-admin/post.php appears in UTC
--------------------------+------------------------------
Reporter: Biranit | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 5.3
Severity: normal | Resolution: invalid
Keywords: close | Focuses: administration
--------------------------+------------------------------
Changes (by Biranit):
* keywords: => close
* status: new => closed
* resolution: => invalid
Comment:
Replying to [comment:6 Rarst]:
> This plugin to be clear https://wordpress.org/plugins/disable-gutenberg/
?
>
> I cannot reproduce locally, the time displays correctly for me...
>
> 1. Does this happen on every post or just some posts?
> 2. Could you look up what's the `post_date` is in database for post you
used as example?
> 3. You mentioned that you set Jerusalem timezone in PHP, any chance you
are trying to do this during WP operation as well? WP core resets PHP time
zone on boot to UTC and relies on that assumption (we are working to
making it more robust, but we are not there 100% yet).
OK, your questions made me go detective a little more - and you are right,
there was a date_default_timezone_set('Asia/Jerusalem') in our global
functions...
I am very sorry to have bothered you all. I removed this line and it seems
everything is working correctly now. My apologies.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48625#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list