We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83f4c72 commit 1518a5dCopy full SHA for 1518a5d
1 file changed
src/main.ts
@@ -23,11 +23,12 @@ async function update() {
23
24
posts.innerHTML = ''
25
26
- for(const note of notes) {
+ for(const note of notes) {
27
28
const li = document.createElement('li')
29
30
- li.innerText = JSON.stringify(note);
+ const timestamp = new Date(note.time)
31
+ li.innerText = `${note.text} (${timestamp.toLocaleString()})`
32
33
posts.appendChild(li)
34
0 commit comments