[sleeplog] Update interface.html

Replace unnecessary match with substr.
pull/2110/head
storm64 2022-05-24 12:58:56 +02:00
parent 86fb6bc7b0
commit b9ed7e75a7
1 changed files with 1 additions and 1 deletions

View File

@ -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);