It would take timestamp_property from attributes if it is set one;
Another issue I had: if i use state directly from DB - it is not up to ISO standad, so I had to fix it in getFeedItems() method by these:
let timeStamp = this.getItemTimestamp(item);
// if timestamp is from SQLite state table, it's without T and timezone, so we need to fix that
if ( typeof timeStamp === 'string' && timeStamp.indexOf("T") == -1 && timeStamp.indexOf("+") == -1 ) {
timeStamp = timeStamp.replace( " ", "T" ) + '+00:00';
}
let tsDate = new Date(timeStamp);
it would set SQLite state table value into ISO format and then everything starts working. Hope these changes might end up in the next release.
Hi guys, I really needed to user timestamp_property for non multi-entities. So I came up with solution to modify getItemTimestamp() with this line:
It would take timestamp_property from attributes if it is set one;
Another issue I had: if i use state directly from DB - it is not up to ISO standad, so I had to fix it in getFeedItems() method by these:
it would set SQLite state table value into ISO format and then everything starts working. Hope these changes might end up in the next release.