Use datetime.utcnow() instead of datetime.now()

(suggested in @spulec review)
This commit is contained in:
Jean-Baptiste Barth 2015-11-18 22:02:58 +01:00
commit 6b581edb55
3 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@ class DecisionTask(object):
self.state = "SCHEDULED"
# this is *not* necessarily coherent with workflow execution history,
# but that shouldn't be a problem for tests
self.scheduled_at = datetime.now()
self.scheduled_at = datetime.utcnow()
self.timeout_type = None
@property