diff options
author | Jan Safranek <jsafrane@redhat.com> | 2013-04-16 12:48:27 +0200 |
---|---|---|
committer | Jan Safranek <jsafrane@redhat.com> | 2013-04-16 13:03:48 +0200 |
commit | 5d027b88d029812c69466ee299b80299293fbe3c (patch) | |
tree | 7e53469bdf9d9c0b69550a09c0cfe6b4265bc6d0 /src/python/openlmi/common/JobManager.py | |
parent | d34456742a7ca374716dafc0b5ea2328f2a789ec (diff) | |
download | openlmi-providers-5d027b88d029812c69466ee299b80299293fbe3c.tar.gz openlmi-providers-5d027b88d029812c69466ee299b80299293fbe3c.tar.xz openlmi-providers-5d027b88d029812c69466ee299b80299293fbe3c.zip |
Use UTC times for all wall clock times.
clocktime_of_last_state_change was in local time.
Diffstat (limited to 'src/python/openlmi/common/JobManager.py')
-rw-r--r-- | src/python/openlmi/common/JobManager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/openlmi/common/JobManager.py b/src/python/openlmi/common/JobManager.py index 1d1c7f7..5ed7830 100644 --- a/src/python/openlmi/common/JobManager.py +++ b/src/python/openlmi/common/JobManager.py @@ -294,7 +294,7 @@ class Job(object): self.start_clocktime = datetime.utcnow() self.start_monotime = self.timer_manager.now() - self.clocktime_of_last_state_change = datetime.now() + self.clocktime_of_last_state_change = datetime.utcnow() self.job_state = new_state if percent is None: @@ -308,7 +308,7 @@ class Job(object): if self.percent_complete != percent: # Remember to send indications if not send_indication: - self.clocktime_of_last_state_change = datetime.now() + self.clocktime_of_last_state_change = datetime.utcnow() prev_instance = self.job_manager.get_job_instance(self) send_indication = True indication_ids.append(JobManager.IND_JOB_PERCENT_UPDATED) |