Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Dec 1, 2023
1 parent a741175 commit 4d39e77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion items/item-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class HistoricItem {
* @param {*} rawHistoricItem {@link https://www.openhab.org/javadoc/latest/org/openhab/core/persistence/historicitem org.openhab.core.persistence.HistoricItem}
*/
constructor (rawHistoricItem) {
this.rawHistoricItem = rawHistoricItem;
/**
* Raw Java Item state
* @type {HostState}
Expand Down Expand Up @@ -68,7 +69,7 @@ class HistoricItem {
* @type {time.ZonedDateTime}
*/
get timestamp () {
return utils.javaZDTToJsZDT(rawHistoricItem.getTimestamp());
return utils.javaZDTToJsZDT(this.rawHistoricItem.getTimestamp());
}
}

Expand Down

0 comments on commit 4d39e77

Please sign in to comment.