Active
Project:
Rules
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2011 at 08:11 UTC
Updated:
28 Dec 2012 at 21:38 UTC
For instance, if I go to Schedule Component interface, the Evaluation Date default is:
2011-09-24 08:02:38
The date in GMT. Format: 2011-09-25 08:02:38 or other values in GMT known by the PHP strtotime() function like "+1 day". Relative dates like "+1 day" or "now" relate to the evaluation time.
So to get a component to trigger at midnight, I set a rule to trigger at `16:00`
However having set this, the rule has just triggered now at 16:00 HKT (+0800), and the current GMT time is 08:00 GMT.
The hosts time date is set to:
Sat Sep 24 16:01:58 HKT 2011
And the Drupal Region Settings Default Time Zone is set to: Asia/HongKong +0800
Comments
Comment #1
carn1x commentedComment #2
carn1x commentedActually back to normal, the 'workaround' is simple enough.
Comment #3
shaundychkoand what is the workaround, exactly?
Comment #4
carn1x commentedOh sorry, I should clarify, the workaround for me was to simply ignore that the scheduler was prompting for GMT, and just input the time as the local time according to the server.
Comment #5
shaundychkoYes, I can confirm that ignoring the prompt for GMT is fine. Maybe this text is out of date. I'm using the latest 6.x version, by the way.
Comment #6
star-szrThe issue here is beyond just the Scheduler component, it applies to all dates evaluated by Rules.
The interface text when entering dates for date comparison says to enter "The date in GMT", however the fixed or relative date entered is evaluated against the timezone in Regional settings, not GMT. Either the documentation needs to be corrected or the evaluation needs to work against GMT as documented.
Maintainers, what do you think?
Related issue: #1875866: Fixed date values drift by GMT offset when re-saved