Use datetime.utcnow() instead of datetime.now()
(suggested in @spulec review)
This commit is contained in:
parent
5f0684fca5
commit
6b581edb55
3 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue