Skip to content

Commit

Permalink
fix timezone conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancrneto committed May 26, 2024
1 parent 3da1fa2 commit 071a9d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bahea_cal/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "",
)
Expand Down

0 comments on commit 071a9d3

Please sign in to comment.