From 5297ac252477d4afa86b3c1051aed88fb48fcd8e Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Mon, 21 Sep 2020 23:35:31 +0200 Subject: [PATCH] [imperihome] Adapt call to ZDT in Persistence API (#8527) Fixes #8290 Signed-off-by: Wouter Born --- .../io/imperihome/internal/handler/DeviceHistoryHandler.java | 2 +- bundles/pom.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3