mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Simplify DateTimeType handling for Tado
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
2ba8a6d4b8
commit
182a0cca2b
@ -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