From 618bae23a64930c3b4cb84fb1298e8a0e7b4c40d Mon Sep 17 00:00:00 2001 From: Jackson Law <178053+jlaw@users.noreply.github.com> Date: Sat, 13 Mar 2021 11:14:36 -0800 Subject: [PATCH] fix: Use now() to match timezone of download data --- tests/commands/test_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index d5e76eeb6..27875ac94 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -706,7 +706,7 @@ def test_download_data_timerange(mocker, caplog, markets): start_download_data(get_args(args)) assert dl_mock.call_count == 1 # 20days ago - days_ago = arrow.get(arrow.utcnow().shift(days=-20).date()).int_timestamp + days_ago = arrow.get(arrow.now().shift(days=-20).date()).int_timestamp assert dl_mock.call_args_list[0][1]['timerange'].startts == days_ago dl_mock.reset_mock()