aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xP/public/xP.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index 0a939c2..a941752 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -402,6 +402,10 @@ let Buffer = {
lines.push(m('.time', {...attrs}, date.toLocaleTimeString()))
lines.push(m(Content, {...attrs}, line))
})
+
+ let dateMark = new Date().toLocaleDateString()
+ if (dateMark !== lastDateMark)
+ lines.push(m('.date', {}, dateMark))
return m('.buffer', {}, lines)
},
}