Wrong time for some seconds after reboot

Posted December 9, 2020 624 views
Ruby on RailsUbuntuRuby

We have a Ruby application that uses in order to get the current time (and sign some requests that are time-sensitive).

Every time that we reboot the droplet (Ubuntu 18.04 LTS) the time returned is completely wrong, but after some seconds (about 20 seconds) the time becomes correct again and then everything works as expected.

The problem is that for some seconds immediately after the reboot the time is wrong.

Why is this happening? How can we solve this? This seems a general issue on all droplets and not something specific to a single machine.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Have you contacted the support team yet?

Hello, collimarco

Could you please let me know if after a reboot only the ruby app is returning a wrong time or if you use date in the command line the returned time is also wrong?