diff --git a/apps/sleeplog/interface.html b/apps/sleeplog/interface.html index 74b90d9cb..7209a50ea 100644 --- a/apps/sleeplog/interface.html +++ b/apps/sleeplog/interface.html @@ -53,7 +53,7 @@ function getFnList() { files = files.map(file => { var ret = { bName: file, - date = (parseInt(file.match(/\d{4}/)[0]) + 0.25) * 12096E5, + date = (parseInt(file.substr(9, 4)) + 0.25) * 12096E5, } ret.dName = new Date(ret.date).toISOString().substr(0, 10) + "_" + new Date(ret.date + 12096E5).toISOString().substr(5, 5); ret.dateA = new Date(ret.date).toLocaleDateString(undefined);