We have a Ruby application that uses Time.now 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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
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?Regards, Alex
Have you contacted the support team yet?