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.

CommentFileSizeAuthor
workflow-scheduler-timezones.patch1.17 KBcyberwolf

Comments

skadu’s picture

Just applied the above patch to the 7.x-1.0 and it seems to have solved the problem. Thanks for the quick fix.

Bastlynn’s picture

Status: Needs review » Fixed

Looks good to me too, patch is applied on the dev branch for 7.x-1.x. Thanks!

cyberwolf’s picture

Thanks guys for the quick response, much appreciated!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Fixing language mistakes.