xP: remember to differentiate today
This commit is contained in:
parent
a2d5995cf5
commit
45aa0e8dfb
@ -402,6 +402,10 @@ let Buffer = {
|
|||||||
lines.push(m('.time', {...attrs}, date.toLocaleTimeString()))
|
lines.push(m('.time', {...attrs}, date.toLocaleTimeString()))
|
||||||
lines.push(m(Content, {...attrs}, line))
|
lines.push(m(Content, {...attrs}, line))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let dateMark = new Date().toLocaleDateString()
|
||||||
|
if (dateMark !== lastDateMark)
|
||||||
|
lines.push(m('.date', {}, dateMark))
|
||||||
return m('.buffer', {}, lines)
|
return m('.buffer', {}, lines)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user