Merge pull request #693 from swipetospin/master
ALWAYS use utcnow(), never now()
This commit is contained in:
commit
59be70d0e4
8 changed files with 11 additions and 11 deletions
|
|
@ -125,7 +125,7 @@ def test_list_open_workflow_executions():
|
|||
reason='a more complete reason',
|
||||
run_id=run_id)
|
||||
|
||||
yesterday = datetime.now() - timedelta(days=1)
|
||||
yesterday = datetime.utcnow() - timedelta(days=1)
|
||||
oldest_date = unix_time(yesterday)
|
||||
response = conn.list_open_workflow_executions('test-domain',
|
||||
oldest_date,
|
||||
|
|
@ -159,7 +159,7 @@ def test_list_closed_workflow_executions():
|
|||
reason='a more complete reason',
|
||||
run_id=run_id)
|
||||
|
||||
yesterday = datetime.now() - timedelta(days=1)
|
||||
yesterday = datetime.utcnow() - timedelta(days=1)
|
||||
oldest_date = unix_time(yesterday)
|
||||
response = conn.list_closed_workflow_executions(
|
||||
'test-domain',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue