diff --git a/bundles/org.openhab.binding.millheat/src/main/java/org/openhab/binding/millheat/internal/handler/MillheatAccountHandler.java b/bundles/org.openhab.binding.millheat/src/main/java/org/openhab/binding/millheat/internal/handler/MillheatAccountHandler.java index ef8620d6219..4fe58535fc4 100644 --- a/bundles/org.openhab.binding.millheat/src/main/java/org/openhab/binding/millheat/internal/handler/MillheatAccountHandler.java +++ b/bundles/org.openhab.binding.millheat/src/main/java/org/openhab/binding/millheat/internal/handler/MillheatAccountHandler.java @@ -420,7 +420,7 @@ public class MillheatAccountHandler extends BaseBridgeHandler { try { switch (property) { case SetHolidayParameterRequest.PROP_START: { - long epoch = ((DateTimeType) command).getZonedDateTime().toEpochSecond(); + long epoch = ((DateTimeType) command).getInstant().getEpochSecond(); SetHolidayParameterRequest req = new SetHolidayParameterRequest(home.getId(), home.getTimezone(), SetHolidayParameterRequest.PROP_START, epoch); if (sendLoggedInRequest(req, SetHolidayParameterResponse.class).isSuccess()) { @@ -429,7 +429,7 @@ public class MillheatAccountHandler extends BaseBridgeHandler { break; } case SetHolidayParameterRequest.PROP_END: { - long epoch = ((DateTimeType) command).getZonedDateTime().toEpochSecond(); + long epoch = ((DateTimeType) command).getInstant().getEpochSecond(); SetHolidayParameterRequest req = new SetHolidayParameterRequest(home.getId(), home.getTimezone(), SetHolidayParameterRequest.PROP_END, epoch); if (sendLoggedInRequest(req, SetHolidayParameterResponse.class).isSuccess()) {