Make WordPress Core

Opened 15 years ago

Closed 14 years ago

#11949 closed defect (bug) (worksforme)

Sheduled posts do not respect the time zone set in Options

Reported by: maciakl's profile maciakl Owned by: westi's profile westi
Milestone: Priority: normal
Severity: normal Version: 2.9.1
Component: Cron API Keywords: timezone time zone sheduled cron
Focuses: Cc:

Description

I'm currently running Wordpress 2.9.1 and I'm experiencing a strange time zone related issue. I'm on a shared server and the time zone on it is set to PST (I can't change that). I am located in the EST time zone. The issue is probably best described as this:

  1. In General options I have set my Time Zone to be New York
  2. I schedule a post to be published at 10am the next day expecting this to mean 10am EST
  3. I wake up in the morning at 7am and notice the post was already published
  4. The date/time note at the post says it was published on 10am but it was not
  5. Comments below the post have correct EST dates

For example, please see this post:

http://www.terminally-incoherent.com/blog/2010/01/19/dragon-age-end-game-decision/

It says it was posted at 10am today. Then note the first comment - it was posted shortly after 5am. This means the post went at least live 5 hours before it was supposed to.

This leads me to believe that my Wordpress is for some reason not respecting the time zone when it comes to scheduled posts (ie the cron job or whatever publishes a scheduled post thinks that the date is in UST), but applies it correctly when it comes to comments.

This issue started when I upgraded to 2.9.1 using the automated upgrade feature.

Attachments (1)

crons.JPG (92.5 KB) - added by maciakl 15 years ago.
Screenshot with scheduled cron jobs

Download all attachments as: .zip

Change History (7)

#1 @miqrogroove
15 years ago

I suggest installing the Core Control Plugin. You can use the Cron Module to determine if "publish_future_post" is being set like "10:00:00 --500".

#2 @maciakl
15 years ago

Thank you! This plugin is great. It seems that all save for one of my queued posts are scheduled to run at "10:00:00 --5" or something similar. A single post is scheduled to run at "5:00:00 --5".

I usually schedule all posts to publish at 10am. Are the dates listed on the cron page in UST or local time?

I went back and used the quick edit function on that outstanding post and changed the time to be 10:01am. When I went back to the Cron section of Core Control the job was now listed "10:01:00 --5".

That single outstanding post was queued up a while ago - I guess that's probably why it is not affected by this issue. Any idea how to fix this?

#3 follow-up: @miqrogroove
15 years ago

Attach a screen shot of that cron page, and let us know if the next post shows up before 10 am.

@maciakl
15 years ago

Screenshot with scheduled cron jobs

#4 in reply to: ↑ 3 @maciakl
15 years ago

Replying to miqrogroove:

Attach a screen shot of that cron page, and let us know if the next post shows up before 10 am.

I attached the screenshot that includes the actual scheduled times.

After I took it I also ran a test. I scheduled a post to be published in 3 minutes, then watched it go off. It appeared at the correct local time.

I will watch it closely and see if the next scheduled post appears before 10am.

#5 @ryan
15 years ago

See [12727] and related tickets.

#6 @nacin
14 years ago

  • Milestone Unassigned deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Closing as worksforme pending feedback. [12727] and related tickets should address this.

Note: See TracTickets for help on using tickets.