WordPress.org

Make WordPress Core

Opened 15 months ago

#44597 new defect (bug)

Scheduling posts adds wrong seconds as post_date

Reported by: katsar0v Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.9.7
Component: General Keywords:
Focuses: Cc:
PR Number:

Description

Whenever I schedule a random post on wordpress, for example I give the date 2 August 2018 18:00, wordpress inserts the wrong seconds into the database in post_date. post_date of the example given would be something like 2018-08-02 18:00:22. WordPress would add these 22 seconds, which is wrong, because I have defined only hours and minutes in the GUI, so seconds should not be just randomly defined.
Here is a database example:
https://i.imgur.com/0KM1Jpw.png

Change History (0)

Note: See TracTickets for help on using tickets.