1
0
Fork 0

[sleeplog] Update interface.html

master
storm64 2022-05-24 13:31:42 +02:00
parent e1f4364ab0
commit 8445241a23
1 changed files with 1 additions and 2 deletions

View File

@ -53,9 +53,8 @@ function getFnList() {
files = files.map(file => { files = files.map(file => {
var ret = { var ret = {
bName: file, bName: file,
date: (parseInt(file.substr(9, 4)) + 0.25) * 12096E5, date: (parseInt(file.match(/\d{4}/)[0]) + 0.25) * 12096E5,
} }
console.log(ret.date);
var thisDates = [new Date(ret.date), new Date(ret.date + 12096E5)]; var thisDates = [new Date(ret.date), new Date(ret.date + 12096E5)];
ret.dName = thisDates[0].toISOString().substr(0, 10) + "_" + thisDates[1].toISOString().substr(5, 5); ret.dName = thisDates[0].toISOString().substr(0, 10) + "_" + thisDates[1].toISOString().substr(5, 5);
ret.dateA = thisDates[0].toLocaleDateString(undefined); ret.dateA = thisDates[0].toLocaleDateString(undefined);