3 ms·
The simple solution to this is that the server sends a reference time along with the timestamps: when the page loads you calculate the drift from the local time
by saurik 14y ago
The simple solution to this is that the server sends a reference time along with the timestamps: when the page loads you calculate the drift from the local time to the reference time, and then adjust local time to server time when you update relative timestamps.