mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Simplify DateTimeType handling for Tado
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
389a0daf31
commit
daeb8c7a47
@ -233,7 +233,7 @@ public class TadoZoneStateAdapter {
|
||||
}
|
||||
|
||||
private static DateTimeType toDateTimeType(OffsetDateTime offsetDateTime) {
|
||||
return new DateTimeType(offsetDateTime.toZonedDateTime());
|
||||
return new DateTimeType(offsetDateTime.toInstant());
|
||||
}
|
||||
|
||||
private static State toTemperatureState(@Nullable TemperatureObject temperature, TemperatureUnit temperatureUnit) {
|
||||
|
Loading…
Reference in New Issue
Block a user