robinostlund / volkswagencarnet

A python library for volkswagen carnet
GNU General Public License v3.0
67 stars 38 forks source link

[Fix] Departure timer timezone conversion fix #269

Open oskari opened 1 month ago

oskari commented 1 month ago

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 https://github.com/robinostlund/homeassistant-volkswagencarnet/issues/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.