From 751bbf7495046839aea6342616923a3c59670409 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Mon, 18 Nov 2024 22:22:11 +0100 Subject: [PATCH] Simplify DateTimeType handling for Satel Integra Alarm System Signed-off-by: Jacob Laursen --- .../binding/satel/internal/handler/SatelSystemHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.openhab.binding.satel/src/main/java/org/openhab/binding/satel/internal/handler/SatelSystemHandler.java b/bundles/org.openhab.binding.satel/src/main/java/org/openhab/binding/satel/internal/handler/SatelSystemHandler.java index a27f01eb6d8..3f454d4cdc1 100644 --- a/bundles/org.openhab.binding.satel/src/main/java/org/openhab/binding/satel/internal/handler/SatelSystemHandler.java +++ b/bundles/org.openhab.binding.satel/src/main/java/org/openhab/binding/satel/internal/handler/SatelSystemHandler.java @@ -117,9 +117,9 @@ public class SatelSystemHandler extends SatelStateThingHandler { dateTime = dateTimeCommand; } if (dateTime != null) { - return Optional.of(new SetClockCommand(dateTime.getZonedDateTime() - .withZoneSameInstant(bridgeHandler.getZoneId()).toLocalDateTime(), - bridgeHandler.getUserCode())); + return Optional.of( + new SetClockCommand(dateTime.getZonedDateTime(bridgeHandler.getZoneId()).toLocalDateTime(), + bridgeHandler.getUserCode())); } break; default: