mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
Simplify DateTimeType handling for KM200
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
c17b5f9ea8
commit
c6087e6b00
@ -16,6 +16,7 @@ import static org.openhab.binding.km200.internal.KM200BindingConstants.*;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.math.RoundingMode;
|
import java.math.RoundingMode;
|
||||||
|
import java.time.ZoneId;
|
||||||
import java.time.ZonedDateTime;
|
import java.time.ZonedDateTime;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -675,7 +676,7 @@ public class KM200DataHandler {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (CoreItemFactory.DATETIME.equals(itemType)) {
|
} else if (CoreItemFactory.DATETIME.equals(itemType)) {
|
||||||
ZonedDateTime swTime = ((DateTimeType) command).getZonedDateTime();
|
ZonedDateTime swTime = ((DateTimeType) command).getZonedDateTime(ZoneId.systemDefault());
|
||||||
KM200SwitchProgramServiceHandler sPService = ((KM200SwitchProgramServiceHandler) objParent
|
KM200SwitchProgramServiceHandler sPService = ((KM200SwitchProgramServiceHandler) objParent
|
||||||
.getValueParameter());
|
.getValueParameter());
|
||||||
if (null != sPService) {
|
if (null != sPService) {
|
||||||
|
Loading…
Reference in New Issue
Block a user