From b46366216af62a260955c6ab64d678d48f411a48 Mon Sep 17 00:00:00 2001 From: Jordan Laser Date: Mon, 23 Sep 2024 18:18:32 -0600 Subject: [PATCH] fix timezone --- python_tools/tests/test_configurer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_tools/tests/test_configurer.py b/python_tools/tests/test_configurer.py index fd0e55ff..7e9ecfe4 100644 --- a/python_tools/tests/test_configurer.py +++ b/python_tools/tests/test_configurer.py @@ -1,5 +1,6 @@ import os, pytest, json from datetime import datetime +import pytz as tz from python_tools.configure_datastream import create_confs SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) @@ -100,7 +101,7 @@ def test_conf_daily(): data = json.load(fp) start = datetime.strptime(data['time']['start_time'],"%Y-%m-%d %H:%M:%S") - assert start.day == datetime.today().day + assert start.day == datetime.now(tz.timezone('US/Eastern')).day with open(CONF_NWM,'r') as fp: data = json.load(fp)