3 ms·
> then you would never need the ServerValue.TIMESTAMP hack ref.push({ foo: 'bar', date: Firebase.ServerValue.TIMESTAMP }); Seems way easier th
by bmm6o 12y ago
> then you would never need the ServerValue.TIMESTAMP hack
ref.push({
foo: 'bar',
date: Firebase.ServerValue.TIMESTAMP
});
Seems way easier than synchronizing a clock in the browser and one on the server, and you don't have to try to account for network latency between browser and server.
> If at any level there is a clock which can skew and is being adjusted with a stochastic process, there is jitter, and you can get out of order
My understanding is that Linux has support for a monotonic clock. As long as its a single box resolving the times this shouldn't be a hard problem.