diff --git a/apps/sleeplog/interface.html b/apps/sleeplog/interface.html
index cc6d34b97..530bb1ea3 100644
--- a/apps/sleeplog/interface.html
+++ b/apps/sleeplog/interface.html
@@ -57,9 +57,9 @@ function getFnList() {
}
console.log(ret.date);
var thisDates = [new Date(ret.date), new Date(ret.date + 12096E5)];
- ret.dName = thisDate[0].toISOString().substr(0, 10) + "_" + thisDate[1].toISOString().substr(5, 5);
- ret.dateA = thisDate[0].toLocaleDateString(undefined);
- ret.dateB = thisDate[1].toLocaleDateString(undefined);
+ ret.dName = thisDates[0].toISOString().substr(0, 10) + "_" + thisDates[1].toISOString().substr(5, 5);
+ ret.dateA = thisDates[0].toLocaleDateString(undefined);
+ ret.dateB = thisDates[1].toLocaleDateString(undefined);
return ret;
});
files = files.sort((a, b) => a.fortnigt - b.fortnigt);