Skip to content

Commit

Permalink
Remove timezone if reading start/end dates from existing file.
Browse files Browse the repository at this point in the history
  • Loading branch information
philtromans authored and gerrymanoim committed Aug 17, 2022
1 parent 99f9f80 commit 0de0483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/make_exchange_calendar_test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
)

if start_arg == "existing":
start = df.index[0]
start = df.index[0].tz_localize(None)
elif start_arg == "default":
start = None
else:
start = start_arg

if end_arg == "existing":
end = df.index[-1]
end = df.index[-1].tz_localize(None)
elif end_arg == "default":
end = None
else:
Expand Down

0 comments on commit 0de0483

Please sign in to comment.