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