Ensure initial timestamps are expressed in UTC when parsing IGRA

This commit is contained in:
XANTRONIX 2025-02-25 21:23:34 -05:00
parent bcf0fa2f97
commit 2d8fc92099

View file

@ -114,9 +114,10 @@ class IGRAReader():
sounding.station = match['id']
date = datetime.datetime(
year = int(match['year']),
month = int(match['month']),
day = int(match['day'])
year = int(match['year']),
month = int(match['month']),
day = int(match['day']),
tzinfo = datetime.UTC
)
timestamp = date.astimezone(datetime.UTC)