Use local date on client for message recieved time

avoids errors with time sync between server and client
This commit is contained in:
Adam Goldsmith 2018-07-12 21:05:15 -04:00
parent 790973cce2
commit c7a645fc9c

View File

@ -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);