Hey I noticed something weird while developing an app that is supposed to run synchronized to a server.
JavaScript's unix timestamp is different on each device! :O
The experiment: I open the chrome dev console and did 2 commands:
new Date()
And
new Date().getTime()
Both of the commands are executed at the EXACT same time (I pressed enter on both computers at the very exact same time)
The output was as follows:
It is highly likely that this problem occurs due to one computer being Central Europe Standard Time and the other W. Europe Standard Time, but I can't ask all my clients to just go to Central Europe standard time.
Is there a way to get the same unix timestamp on both devices regardless of their clock if both are called at the exact same time?