Skip to content

Commit 5629471

Browse files
authored
[items] Item: Fix lastStateChange fields call wrong method (#459)
Signed-off-by: Richard Koshak <rlkoshak@gmail.com>
1 parent eaae9e6 commit 5629471

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/items/items.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class Item {
215215
* @type {time.ZonedDateTime|null}
216216
*/
217217
get lastStateChangeTimestamp () {
218-
const timestamp = this.rawItem.getLastStateUpdate();
218+
const timestamp = this.rawItem.getLastStateChange();
219219
if (timestamp == null) return null;
220220
return time.javaZDTToJsZDT(timestamp);
221221
}
@@ -225,7 +225,7 @@ class Item {
225225
* @type {time.Instant|null}
226226
*/
227227
get lastStateChangeInstant () {
228-
const timestamp = this.rawItem.getLastStateUpdate();
228+
const timestamp = this.rawItem.getLastStateChange();
229229
if (timestamp == null) return null;
230230
return time.javaInstantToJsInstant(timestamp.toInstant());
231231
}

0 commit comments

Comments
 (0)