mirror of https://github.com/espruino/BangleApps
[sleeplog] Update interface.html
Replace unnecessary match with substr.pull/2110/head
parent
86fb6bc7b0
commit
b9ed7e75a7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue