From c7a645fc9c5afe3909afe4d321e64baed3bf867e Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 12 Jul 2018 21:05:15 -0400 Subject: [PATCH] Use local date on client for message recieved time avoids errors with time sync between server and client --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index 22c143d..e0e6d46 100644 --- a/client.js +++ b/client.js @@ -99,7 +99,7 @@ let aprsStream = new WebSocket("wss://adamgoldsmith.name/APRSws"); aprsStream.onmessage = function(event) { let message = JSON.parse(event.data); let callsign = `${message.from.call}-${message.from.ssid || 0}`; - let date = new Date(message.recieved); + let date = new Date(); // TODO: could remove "message.recieved" from server console.log(message); messages.push(message);