--- scheduler.module 2013-07-27 18:42:28.000000000 +0100 +++ scheduler.module 2013-09-07 11:32:45.000000000 +0100 @@ -772,7 +772,10 @@ function _scheduler_publish() { $create_publishing_revision = variable_get('scheduler_publish_revision_' . $n->type, 0) == 1; if ($create_publishing_revision) { $n->revision = TRUE; - $n->log = "Node published by scheduler module. Original creation date was " . format_date($old_creation_date, 'custom', $date_format) . "."; + $n->log = t('Node published by Scheduler on @now. Previous creation date was @date.', array( + '@now' => format_date(REQUEST_TIME, 'short'), + '@date' => format_date($old_creation_date, 'short'), + )); } // Unset publish_on so the node will not get rescheduled by subsequent calls // to node_save(). @@ -846,7 +849,10 @@ function _scheduler_unpublish() { $create_unpublishing_revision = variable_get('scheduler_unpublish_revision_' . $n->type, 0) == 1; if ($create_unpublishing_revision) { $n->revision = TRUE; - $n->log = "Node unpublished by scheduler module. Original change date was " . format_date($old_change_date, 'custom', $date_format) . "."; + $n->log = t('Node unpublished by Scheduler on @now. Previous change date was @date.', array( + '@now' => format_date(REQUEST_TIME, 'short'), + '@date' => format_date($old_change_date, 'short'), + )); } // Unset unpublish_on so the node will not get rescheduled by subsequent // calls to node_save().