[Solved] How to get Rule Scheduler to Honor Timezone Setting

Events happening in the community are now at Drupal community events on www.drupal.org.
fathershawn's picture

I've defined a rule that schedules another rule:

ON event After saving new content

IF

Created content is Page or Story

DO

Schedule {action}: Scheduled Publishing {rule set}

I've defined a CCK field: Publish Date

The rule is set to schedule using the token: [node:field_publish_date-datetime]

In the node edit screen, the CCK field displays time that matches my current time zone as set both on my test server itself and in the Date module settings page: Eastern Standard.

On the Scheduled rules page however, the time for the scheduled rule is 5 hours earlier, so if I select 10:00 a.m. for example, the schedule shows 05:00.

Where is it picking up this setting and how can I fix it?

Comments

It's the Token!

fathershawn's picture

Changed the Token and all is well! Should have used: [node:field_publish_date-value].

I don't know if it was part of the solution, but I also switched Time Zone management in the CCK field def. from site to Date module.

Drupaling in NYC since 2009!

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: