Merge pull request #693 from swipetospin/master

ALWAYS use utcnow(), never now()
This commit is contained in:
Steve Pulec 2016-09-13 21:55:40 -04:00 committed by GitHub
commit 59be70d0e4
8 changed files with 11 additions and 11 deletions

View file

@ -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',