• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 496
  • Last Modified:

Ubuntu Manually Set Time

I have an Ubuntu server that is about 30 minutes off. It's on a private 10. network with no access to the outside (and no proxy to use) so I syncing with an ntp server doesn't work.

How can I manually tell the server what time it is?
  • 2
2 Solutions
console command
date MMDDhhmm[[CC]YY][.ss]
for example
date 05172105
for 17th may 9:05pm
Or reboot, enter bios setup, and do it there.
I did this once on a windows client that thought that I'm not autorized to correct the time setting.
After you set the date and time with the date command, sync it to hardware with
hwclock --systohc
so that you don't have to reboot.
brendan-amexAuthor Commented:
Thank you both. The answer from msifox answered my question but the help from serialband is a great suggestion!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now