Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Departure timer timezone conversion fix #269

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oskari
Copy link

@oskari oskari commented Oct 23, 2024

While we need only the hours and minutes of the departure timers, the exact dates on those time objects were wrong and resulted in wrong timezone offsets being used.

eg. 1900-01-01 06:39:49+01:39:49

This should fix robinostlund/homeassistant-volkswagencarnet#585

Disclaimer: I am not python developer and the results here are very crude attempts that I managed to get working after a lot of googling. The problem in the code was .astimezone(tz=None) part really.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Departure timer times are wrong after timezone conversion
1 participant