[wp-trac] [WordPress Trac] #44597: Scheduling posts adds wrong seconds as post_date

WordPress Trac noreply at wordpress.org
Wed Jan 15 18:09:18 UTC 2025


#44597: Scheduling posts adds wrong seconds as post_date
--------------------------+------------------------------
 Reporter:  katsar0v      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:  4.9.7
 Severity:  normal        |  Resolution:
 Keywords:  close         |     Focuses:
--------------------------+------------------------------

Comment (by pbearne):

 @davidtheplumber
 I can see how this will fix this
 Looking at the core code, it seems to me that we don't set the seconds if
 a date/time is pass in
 if not then we call current_time( 'mysql' ) which does

 I can see the case for changing this to set to the seconds to 00
 But we will need some more core dev to wade in before we do this.

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


More information about the wp-trac mailing list