There was an error while loading. Please reload this page.
1 parent eaae9e6 commit 5629471Copy full SHA for 5629471
1 file changed
src/items/items.js
@@ -215,7 +215,7 @@ class Item {
215
* @type {time.ZonedDateTime|null}
216
*/
217
get lastStateChangeTimestamp () {
218
- const timestamp = this.rawItem.getLastStateUpdate();
+ const timestamp = this.rawItem.getLastStateChange();
219
if (timestamp == null) return null;
220
return time.javaZDTToJsZDT(timestamp);
221
}
@@ -225,7 +225,7 @@ class Item {
225
* @type {time.Instant|null}
226
227
get lastStateChangeInstant () {
228
229
230
return time.javaInstantToJsInstant(timestamp.toInstant());
231
0 commit comments