From 182a0cca2bc4bfee58d51c9956c29b33890cfe3e Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Sat, 9 Nov 2024 22:41:20 +0100 Subject: [PATCH] Simplify DateTimeType handling for Tado Signed-off-by: Jacob Laursen --- .../binding/tado/internal/adapter/TadoZoneStateAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.tado/src/main/java/org/openhab/binding/tado/internal/adapter/TadoZoneStateAdapter.java b/bundles/org.openhab.binding.tado/src/main/java/org/openhab/binding/tado/internal/adapter/TadoZoneStateAdapter.java index b70d229ff68..7f455f1a39f 100644 --- a/bundles/org.openhab.binding.tado/src/main/java/org/openhab/binding/tado/internal/adapter/TadoZoneStateAdapter.java +++ b/bundles/org.openhab.binding.tado/src/main/java/org/openhab/binding/tado/internal/adapter/TadoZoneStateAdapter.java @@ -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) {