Skip to content

Commit

Permalink
Update whittlesea_vic_gov_au.py - DST Fix (#1328)
Browse files Browse the repository at this point in the history
updating 10 hours different to 1 day to allow for DST
  • Loading branch information
mikz-t authored Oct 16, 2023
1 parent cc82267 commit e8b7b86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ def fetch(self):

for item in data["rows"]:
if "cartodb_id" in item:
# adding 10 hours to the date to fix timezone issue
# adding 1 day to the date to fix timezone issue (covers AEST and AEDST)
# https://github.com/mampfes/hacs_waste_collection_schedule/issues/912
collection_date = (parse(item["date"]) + timedelta(hours=10)).date()
collection_date = (parse(item["date"]) + timedelta(days=1)).date()
entries.append(
Collection(
date=collection_date,
Expand Down

0 comments on commit e8b7b86

Please sign in to comment.