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?
brendan-amexAsked:
Who is Participating?
 
msifoxConnect With a Mentor Commented:
console command
date MMDDhhmm[[CC]YY][.ss]
for example
date 05172105
for 17th may 9:05pm
0
 
msifoxCommented:
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.
0
 
serialbandConnect With a Mentor Commented:
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.
0
 
brendan-amexAuthor Commented:
Thank you both. The answer from msifox answered my question but the help from serialband is a great suggestion!!
0
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.

All Courses

From novice to tech pro — start learning today.