diff --git a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/handler/ClockAppHandler.java b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/handler/ClockAppHandler.java index c307074c3de..fba64cbee20 100644 --- a/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/handler/ClockAppHandler.java +++ b/bundles/org.openhab.binding.lametrictime/src/main/java/org/openhab/binding/lametrictime/internal/handler/ClockAppHandler.java @@ -15,6 +15,7 @@ package org.openhab.binding.lametrictime.internal.handler; import static org.openhab.binding.lametrictime.internal.LaMetricTimeBindingConstants.*; import java.time.LocalTime; +import java.time.ZoneId; import org.eclipse.jdt.annotation.NonNullByDefault; import org.eclipse.jdt.annotation.Nullable; @@ -53,7 +54,7 @@ public class ClockAppHandler extends AbstractLaMetricTimeAppHandler { try { switch (channelUID.getId()) { case CHANNEL_APP_SET_ALARM: { - LocalTime time = ((DateTimeType) command).getZonedDateTime().toLocalTime(); + LocalTime time = ((DateTimeType) command).getZonedDateTime(ZoneId.systemDefault()).toLocalTime(); getDevice().doAction(getWidget(), CoreApps.clock().setAlarm(true, time, null)); updateActiveAppOnDevice(); break;