Opened 11 years ago
Closed 11 years ago
#26033 closed defect (bug) (fixed)
Dashboard math error with scheduled posts
Reported by: | Ipstenu | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | normal | Version: | 3.8 |
Component: | Date/Time | Keywords: | has-patch |
Focuses: | Cc: |
Description
Today is the 15th.
I have a post set to go up tomorrow at 7:30am.
Dashboard says it's set for TODAY at 7:30am
Attachments (5)
Change History (13)
#3
@
11 years ago
- Component changed from General to Date/Time
The screenshot from Edit Posts screen displays 2013/11/15 too, so the date at least appears to be consistent in both places. Is this a regression from 3.7?
#4
@
11 years ago
Sergey, can this be called a 'regression' if the feature is part of what's new in Dashboard?
And no, the dates are NOT the same, unless I misunderstand your meaning here. The screenshots were taken on the 14th, local time Pacific US, WP time Pacific Us.
"View from my dashboard" shows a post scheduled for tomorrow to be scheduled for today in the past. Time was right, day was wrong.
"View from Post Edit Page" remains correct, as always.
I have just attached "Another view of the dashboard" and that says that "Facebook Scam Artist" is scheduled for 'tomorrow' however today is 16 Nov 2013, and the post is actually scheduled for the 18th.
I think the problem here is the Dashboard is pulling up GMT time instead of honoring my setup's local time.
#5
@
11 years ago
- Milestone changed from Awaiting Review to 3.8
Replying to Ipstenu:
Sergey, can this be called a 'regression' if the feature is part of what's new in Dashboard?
That would be a new bug then :)
And no, the dates are NOT the same, unless I misunderstand your meaning here. The screenshots were taken on the 14th, local time Pacific US, WP time Pacific Us.
In the ticket description, you said:
Today is the 15th. I have a post set to go up tomorrow at 7:30am.
So I assumed that the correct date would be the 16th. However, the second screenshot displays 2013/11/15, so it looked like both dates were incorrect, not just the one in Dashboard.
I think the problem here is the Dashboard is pulling up GMT time instead of honoring my setup's local time.
That's my assumption as well. Thanks for the clarification, dashboard_relative_date()
is indeed new in 3.8.
#6
@
11 years ago
26033.patch should fix this.
The current check doesn't make sense to me. It just assumes that if there are less than 24 hours until the scheduled publish time, it's "today". If 24 to 48 hours, it's "tomorrow". It doesn't take actual dates into account.
View from Post Edit Page