Simplify DateTimeType handling for Satel Integra Alarm System

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Jacob Laursen 2024-11-18 22:22:11 +01:00 committed by Ciprian Pascu
parent dca9fbc563
commit 62d698e657

View File

@ -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: