Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
Use correct timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
johanohly committed Jan 29, 2024
1 parent 0a25bc8 commit 9f55acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/bedste_lectio/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_next_room(entries: list[dict[str, str]]) -> dict[str, str]:

rooms = []
for entry in entries:
date = parser.parse(entry["tidspunkt"].split(" til")[0], fuzzy=True).replace(tzinfo=ZoneInfo("Etc/UCT"))
date = parser.parse(entry["tidspunkt"].split(" til")[0], fuzzy=True).replace(tzinfo=ZoneInfo("Europe/Copenhagen"))
if date < datetime.now(tz=ZoneInfo("Europe/Copenhagen")):
continue

Expand Down

0 comments on commit 9f55acd

Please sign in to comment.