From 071a9d33bcc0c711e6017b1f3ce924e84f6b7a89 Mon Sep 17 00:00:00 2001 From: Ivan Neto Date: Sat, 23 Mar 2024 20:19:58 -0300 Subject: [PATCH] fix timezone conversion --- bahea_cal/fetch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bahea_cal/fetch.py b/bahea_cal/fetch.py index 2c9c8dc..3f756ee 100644 --- a/bahea_cal/fetch.py +++ b/bahea_cal/fetch.py @@ -41,9 +41,9 @@ def from_parsed(cls, event): return cls( summary=f"[{match.championship.name}] {match.home_team.popular_name} x {match.away_team.popular_name}", description=description, - start_datetime=arrow.get(match.start_at), + start_datetime=arrow.get(match.start_at).to(timezone), start_timezone=timezone, - end_datetime=arrow.get(match.start_at).shift(minutes=+120), + end_datetime=arrow.get(match.start_at).to(timezone).shift(minutes=+120), end_timezone=timezone, location=match.location and match.location.popular_name or "", )