Files
core/homeassistant
Phil Bruckner a5d95dfbdc Make last_seen attribute a timezone aware datetime in UTC (#16348)
The last_seen attribute was a datetime in the local timezone but with
no tzinfo (i.e., a "naive" datetime.) When state changes occurred it
would be printed incorrectly in homeassistant.log because
homeassistant.util.dt.as_local assumes any datetime without tzinfo is
UTC. Also most, if not all, datetime attributes are timezone aware in
UTC. So use homeassistant.util.dt.as_utc (which assumes a naive
datetime is local) to convert last_seen to a timezone aware datetime
in UTC.
2018-09-01 18:49:03 +02:00
..
2018-08-29 10:16:54 +02:00
2018-08-28 12:52:18 +02:00
2016-03-08 00:06:04 +01:00
2018-08-24 10:39:35 +02:00
2018-08-29 12:20:05 +02:00
2018-07-26 08:55:42 +02:00
2018-08-19 22:29:08 +02:00