When scheduling state transitions, the timezone our website has been configured to use (Europe/Brussels, which is GMT +0100) is not honored. The date we enter is handled as a time in GMT instead. As a side-effect, each time we open the node edit form and save it again, the scheduled state transition moves 1 hour forward.
While trying to find the right part in the code to solve this I also discovered that workflow for D7 still uses Drupal's timezone variable as if it contains a GMT offset like it was in D6, while D7 actually uses real timezones now.
Patch attached which fixes both issues at once.
| Comment | File | Size | Author |
|---|---|---|---|
| workflow-scheduler-timezones.patch | 1.17 KB | cyberwolf |
Comments
Comment #1
skaduJust applied the above patch to the 7.x-1.0 and it seems to have solved the problem. Thanks for the quick fix.
Comment #2
Bastlynn commentedLooks good to me too, patch is applied on the dev branch for 7.x-1.x. Thanks!
Comment #3
cyberwolf commentedThanks guys for the quick response, much appreciated!
Comment #4.0
(not verified) commentedFixing language mistakes.