diff --git a/bundles/org.openhab.binding.visualcrossing/src/main/java/org/openhab/binding/visualcrossing/internal/TypeBuilder.java b/bundles/org.openhab.binding.visualcrossing/src/main/java/org/openhab/binding/visualcrossing/internal/TypeBuilder.java index ce2173535ef..11698ab6260 100644 --- a/bundles/org.openhab.binding.visualcrossing/src/main/java/org/openhab/binding/visualcrossing/internal/TypeBuilder.java +++ b/bundles/org.openhab.binding.visualcrossing/src/main/java/org/openhab/binding/visualcrossing/internal/TypeBuilder.java @@ -20,7 +20,6 @@ import static org.openhab.core.types.UnDefType.UNDEF; import java.math.BigDecimal; import java.time.Instant; -import java.time.ZoneId; import java.util.Collection; import java.util.function.Function; @@ -205,8 +204,7 @@ class TypeBuilder { return UNDEF; } var instant = Instant.ofEpochSecond(number.longValue()); - var zonedDateTime = instant.atZone(ZoneId.of("UTC")); - return new DateTimeType(zonedDateTime); + return new DateTimeType(instant); } public static State newDateTimeType(@Nullable T obj, Function function) {