From babde932e782633ea36e8730524f9f0de28bb385 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Sun, 9 Jun 2024 04:09:07 -0400 Subject: [PATCH] adding readableTimestamp to messages --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index aa04ab7..9dcc2ec 100644 --- a/app.js +++ b/app.js @@ -303,6 +303,7 @@ function sendMessage(e) { topic: b4a.toString(currentRoom.topic, 'hex'), peers: [...swarm.connections].map(peer => peer.remotePublicKey.toString('hex')), timestamp: Date.now(), + readableTimestamp: new Date().toLocaleString(), // Added human-readable timestamp }); const peers = [...swarm.connections];