From: Wouter Born Date: Mon, 21 Sep 2020 21:35:31 +0000 (+0200) Subject: [imperihome] Adapt call to ZDT in Persistence API (#8527) X-Git-Url: https://git.basschouten.com/?a=commitdiff_plain;h=5297ac252477d4afa86b3c1051aed88fb48fcd8e;p=openhab-addons.git [imperihome] Adapt call to ZDT in Persistence API (#8527) Fixes #8290 Signed-off-by: Wouter Born --- diff --git a/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/handler/DeviceHistoryHandler.java b/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/handler/DeviceHistoryHandler.java index 6542ec7cf8..f12635a585 100644 --- a/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/handler/DeviceHistoryHandler.java +++ b/bundles/org.openhab.io.imperihome/src/main/java/org/openhab/io/imperihome/internal/handler/DeviceHistoryHandler.java @@ -110,7 +110,7 @@ public class DeviceHistoryHandler { State state = historicItem.getState(); if (state instanceof DecimalType) { Number value = ((DecimalType) state).toBigDecimal(); - resultItems.add(new HistoryItem(historicItem.getTimestamp(), value)); + resultItems.add(new HistoryItem(historicItem.getTimestamp().toInstant().toEpochMilli(), value)); } } diff --git a/bundles/pom.xml b/bundles/pom.xml index 003f0585ac..8527b7f5e1 100644 --- a/bundles/pom.xml +++ b/bundles/pom.xml @@ -19,6 +19,7 @@ org.openhab.io.homekit + org.openhab.io.imperihome org.openhab.io.neeo org.openhab.io.openhabcloud org.openhab.io.transport.modbus