• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 492
  • 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?
0
brendan-amex
Asked:
brendan-amex
  • 2
2 Solutions
 
msifoxCommented:
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
 
serialbandCommented:
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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