[wp-trac] [WordPress Trac] #48642: Scheduled posts times are displayed incorrectly

WordPress Trac noreply at wordpress.org
Thu Nov 14 20:05:22 UTC 2019


#48642: Scheduled posts times are displayed incorrectly
--------------------------+------------------------------
 Reporter:  charveyunm    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:  5.3
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by charveyunm):

 ''In testing I think this is actually related to both ACF and the Classic
 Editor plugin''


 This is specific to scheduling future posts, correct?
 **Yes this refers to scheduling future posts on the post edit admin
 page.**

 Database values seem to be correct, as you mentioned in comment elsewhere,
 could you double check that please?

 **The database actually lists the post date as the future time (I chose
 13:00 and it set it to 20:00) but as far as what the cron gets i'm not
 sure i can decipher the wp_options cron option enough to actually tell
 when it will fire. My only knowledge of it actually firing on the time i
 assign from the drop down is just trying it, I set it, it says the wrong
 thing but actually executes when i selected it.**

 **In ACF Pro's case - the database is storing the correct time - if I
 choose 12:00AM - database entry is 00:00:00 if i choose 2AM it's 02:00:00
 - the display on the front end though is 7AM and 9PM respectively.**

 By "display" you mean in WP post editor? Do you use core version of
 Gutenberg or something else?
 **We use a combination of Advanced Custom Fields and the classic editor
 plugin (may be related to classic editor)**

 What is your exact time zone in settings?
 **We have our set to Denver**

 By chance are you changing default PHP time zone anywhere in your code?
 **No we were allowing WordPress to control our timezone.**

 Is it possible to check if the issue still happens without ACF involved?
 **I actually turned off classic editor and the scheduled post time is
 showing correctly (so must be an issue with that plugin specifically in
 regards to that specific issue)**

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


More information about the wp-trac mailing list