By Marco Colli
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.