Skip to content

Commit

Permalink
Update history.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfonso committed Dec 12, 2023
1 parent f895e80 commit 3afda01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modules/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function sendHistoryResponse(ws, id, historyData, parameters) {
*/
function _convertStateTStoISOString(e) {
try {
return new Date(e.lu || e.lc).toISOString();
return new Date((e.lu || e.lc) * 1000).toISOString();
} catch (error) {
return new Date().toISOString();
}
Expand Down

0 comments on commit 3afda01

Please sign in to comment.