[sleeplog] Correct calculation of time in trigger

pull/2322/head
storm64 2022-11-16 23:26:23 +01:00
parent 9105c94e1b
commit a2fd46e35c
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ if (sleeplog.conf.enabled) {
if (triggers.length) {
// calculate time from timestamp in ms on full minutes
var time = data.timestamp;
time = ((time.getHours() * 60) + time.getMinutes() * 60) * 1000;
time = (time.getHours() * 60 + time.getMinutes()) * 60 * 1000;
// go through all triggers
triggers.forEach(key => {
// read entry to key