[sleeplog] Correct generation of time in trigger

pull/2322/head
storm64 2022-11-17 10:04:57 +01:00
parent 528716322a
commit dfe57c0e77
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ if (sleeplog.conf.enabled) {
var triggers = Object.keys(this.trigger) || [];
if (triggers.length) {
// calculate time from timestamp in ms on full minutes
var time = new Date(data.timestamp);
var time = new Date();
time = (time.getHours() * 60 + time.getMinutes()) * 60 * 1000;
// go through all triggers
triggers.forEach(key => {