klali / ha-plejd

Plejd component for Home Assistant
Apache License 2.0
69 stars 15 forks source link

refactor time handling #52

Open klali opened 2 years ago

klali commented 2 years ago

ping @bnordli maybe this handles the time without needing to configure offset?

bnordli commented 2 years ago

It only works if n = n - n.dst() is replaced with n = n + n.dst(). It is really peculiar, because my Plejd app currently sets the system time to UTC+3, while my current time zone is UTC+2 (and Norway's standard time is UTC+1).

klali commented 2 years ago

Very interesting.. mine is the opposite. Then I need to understand this better.. Thanks.