Hi,
Scheduler doesnt use drupal's default timezone.
You can fix it, look down.
Bye.
@@ -58,6 +58,7 @@
// init standard values
$defaults = new StdClass;
$defaults->publish_on = $defaults->unpublish_on = NULL;
+ $defaults->timezone = variable_get('date_default_timezone', 0);
}
@@ -53,6 +53,10 @@
//only load the values if we are viewing an existing node
if ($node->nid > 0) {
$defaults = db_fetch_object(db_query('SELECT publish_on, unpublish_on, timezone FROM {scheduler} WHERE nid = %d', $node->nid));
+ if (empty($defaults->timezone))
+ {
+ $defaults->timezone = variable_get('date_default_timezone', 0);
+ }
}
else {
// init standard values
Comments
Comment #1
AjK commentedScheduler does use the default timezone. Every scheduled publish/unpublish entry stores a unique timezone as well (see the hook_form_alter() that adds a timezone widget to the node form) so that global users can set an appropiate timezone for their location. The timezone selector widegt defaults to the sites "default" with :-
(note the #default_value uses variable_get('date_default_timezone', 0)) and that gets stored for each node.
So if you don't alter the timezone when creating/editing a node the server/site wide default is used.