Skip to content

Commit

Permalink
fix timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLaserGit committed Sep 24, 2024
1 parent b2e367e commit b463662
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python_tools/tests/test_configurer.py
Original file line number Diff line number Diff line change
@@ -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__))
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b463662

Please sign in to comment.