ha-plejd icon indicating copy to clipboard operation
ha-plejd copied to clipboard

refactor time handling

Open klali opened this issue 3 years ago • 3 comments

klali avatar Aug 24 '21 19:08 klali

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

klali avatar Aug 24 '21 19:08 klali

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).

bnordli avatar Aug 25 '21 07:08 bnordli

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

klali avatar Aug 25 '21 08:08 klali