#6858 closed defect (bug) (worksforme)
Editing timestamp for "today" has order reversed somewhere.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 2.5.1 |
Component: | Administration | Keywords: | timestamp |
Focuses: | Cc: |
Description
Just upgraded to wordpress 2.5.1, so not sure if this issue existed before.
I created a new post yesterday (26.04), set its timestamp to today (27.04) it was not posted, I assumed I had to wait until today.
Today I saw that it still wasn't posted and when I went to manage posts, it listed it as 11 hours from now, though it should have been 11 hours ago. I played around with timestamp and saw that it always adds, as if it is taking an absolute value instead of subtracting when timestamp is in the past.
I.e. right now is 12:48. When setting timestamp to 13:15 and looking at manage posts list, it says 27 minutes from now, so correct - 27 minutes in the future. However, when I set timestamp to 12:15 and go to manage posts it says 33 minutes from now instead of 33 minutes ago.
After a little more testing I realized the problem is a little more complicated. Even as I set timestamp 2 minutes in the future and waited for 2 minutes, it rolled over and started counting up again without publishing the post!
The only way for me to publish that existing post was to set timestamp to yesterday's date or earlier.
So in order to have today's date I had to delete the post, create a new post, and press publish without touching timestamp.