Skip to content

Commit 086ede6

Browse files
committed
fix typos and use canonical name for Central timezone
1 parent 6b15e5c commit 086ede6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

batcher/tempo_filename_parser.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def get_day_in_us_central(
6060
The day from granule filename
6161
time_in_granule: str
6262
The time from granule filename
63-
assume_tz : timezon, optional (default: UTC)
64-
this is the timezone in which `dt` should be interpreted
65-
before converting to Central.
63+
assume_tz : timezone, optional (default: UTC)
64+
this is the timezone in which `day_in_granule` and `time_in_granule`
65+
should be interpreted before converting to Central.
6666
6767
Returns
6868
-------
@@ -73,7 +73,7 @@ def get_day_in_us_central(
7373
dt = datetime.strptime(day_in_granule + time_in_granule, "%Y%m%d%H%M%S")
7474
dt = dt.replace(tzinfo=assume_tz)
7575

76-
dt_central = dt.astimezone(ZoneInfo("US/Central"))
76+
dt_central = dt.astimezone(ZoneInfo("America/Chicago"))
7777
return dt_central.strftime("%Y%m%d")
7878

7979

0 commit comments

Comments
 (0)