diff --git a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeUtils.java b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeUtils.java index 91b17402b1d..a3ef01991ed 100644 --- a/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeUtils.java +++ b/bundles/org.openhab.binding.ecobee/src/main/java/org/openhab/binding/ecobee/internal/handler/EcobeeUtils.java @@ -14,7 +14,6 @@ package org.openhab.binding.ecobee.internal.handler; import java.time.Instant; import java.time.LocalDateTime; -import java.time.ZonedDateTime; import javax.measure.Unit; import javax.measure.quantity.Temperature; @@ -89,8 +88,7 @@ public final class EcobeeUtils { } public static State undefOrDate(@Nullable Instant instant, TimeZoneProvider timeZoneProvider) { - return instant == null ? UnDefType.UNDEF - : new DateTimeType(ZonedDateTime.ofInstant(instant, timeZoneProvider.getTimeZone())); + return instant == null ? UnDefType.UNDEF : new DateTimeType(instant); } public static State undefOrDate(@Nullable LocalDateTime ldt, TimeZoneProvider timeZoneProvider) {