cumulocity-app-builder icon indicating copy to clipboard operation
cumulocity-app-builder copied to clipboard

Simulator locking - Need to check browser clock accuracy

Open rpeach-sag opened this issue 4 years ago • 1 comments

We seem to have an issue where computer clocks are not synchronised....

Solution:

  • get the time from the server
  • compare to the local time
  • store the offset
  • add the offset to the local time before we send any times to the server
  • Periodically update the offset (every 5mins?)

Potential issues with solution:

  • The offset also contains the latency from the initial server call
  • Hopefully this isn't too much of an issue because every user's offset will have a similar latency included (hopefully similar latencies, never anywhere near 5 seconds)

rpeach-sag avatar Mar 19 '20 16:03 rpeach-sag

I suspect that this was actually the issue: https://github.com/SoftwareAG/cumulocity-app-builder/issues/24

rpeach-sag avatar Apr 06 '20 19:04 rpeach-sag