Skip to content

Use UTC datetimes internally & make last_seen attr HA's local tz

Latest
Compare
Choose a tag to compare
@pnbruckner pnbruckner released this 20 Nov 15:15

What's Changed

  • Python datetime object comparisons and math don't work as expected when the objects are aware and have the same tzinfo attribute. Basically, the fold attribute is ignored in this case, which can lead to wrong results. Avoid this problem by using aware times in UTC internally. Only use local time zone for user visible attributes.
  • Also, use HA's local time zone instead of the OS's time zone.

Full Changelog: 1.3.4...1.3.5