Use local date on client for message recieved time
avoids errors with time sync between server and client
This commit is contained in:
parent
790973cce2
commit
c7a645fc9c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user