[imperihome] Adapt call to ZDT in Persistence API (#8527)

Fixes #8290

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2020-09-21 23:35:31 +02:00
committed by GitHub
parent 2e4b1beb7f
commit 5297ac2524
2 changed files with 2 additions and 1 deletions

View File

@@ -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));
}
}

View File

@@ -19,6 +19,7 @@
<modules>
<!-- io -->
<module>org.openhab.io.homekit</module>
<module>org.openhab.io.imperihome</module>
<module>org.openhab.io.neeo</module>
<module>org.openhab.io.openhabcloud</module>
<module>org.openhab.io.transport.modbus</module>