use gmtime instead of unixtime to report timestamps
authorTom Clegg <tom@clinicalfuture.com>
Thu, 6 Jun 2013 15:19:36 +0000 (11:19 -0400)
committerTom Clegg <tom@clinicalfuture.com>
Thu, 6 Jun 2013 16:46:14 +0000 (12:46 -0400)
services/crunch/crunch-job

index 60aadcc7a572365ecf80c6dda5eb8355754bd167..38176569d0dcf4c9bb1fe535fc887fbc0c7c0e5d 100755 (executable)
@@ -223,7 +223,7 @@ if ($job_has_uuid)
   # Claim this job, and make sure nobody else does
 
   $Job->{'is_locked_by'} = $User->{'uuid'};
-  $Job->{'started_at'} = time;
+  $Job->{'started_at'} = gmtime;
   $Job->{'running'} = 1;
   $Job->{'success'} = undef;
   $Job->{'tasks_summary'} = { 'failed' => 0,
@@ -1115,7 +1115,7 @@ sub cleanup
   $Job->reload;
   $Job->{'running'} = 0;
   $Job->{'success'} = 0;
-  $Job->{'finished_at'} = time;
+  $Job->{'finished_at'} = gmtime;
   $Job->save;
 }