in fact localtime is correct if server admin runs server in GMT

Revert "#441 change localtime to gmtime"

This reverts commit 779e0a618d.
This commit is contained in:
Oliver Gorwits
2018-10-19 15:08:38 +01:00
parent 1baa6dacc6
commit fb3ef12854
4 changed files with 8 additions and 8 deletions

View File

@@ -137,7 +137,7 @@ foreach my $host (@hostlist) {
if ($queue_only) {
jq_insert( \@job_specs );
info sprintf '%s: queued %s jobs at %s',
$action, (scalar @job_specs), scalar gmtime;
$action, (scalar @job_specs), scalar localtime;
}
else {
foreach my $spec (@job_specs) {
@@ -152,7 +152,7 @@ else {
# do job
try {
info sprintf '%s: %s started at %s',
$action, $actiontext, scalar gmtime;
$action, $actiontext, scalar localtime;
$worker->run($job);
}
catch {
@@ -168,7 +168,7 @@ else {
);
}
info sprintf '%s: finished at %s', $action, scalar gmtime;
info sprintf '%s: finished at %s', $action, scalar localtime;
info sprintf '%s: status %s: %s', $action, $job->status, $job->log;
$exitstatus = 1 if !$exitstatus and $job->status ne 'done';
}