Search Our Database

How to manually set server date and time

Last updated on |
by

To set the system clock, you can use the date command.

1. SSH to your server

2. Run the command below to change the date and time:

# date --set="Mmm DD HH:MM:SS YYYY"
The command's format can be matched to the example below
# date --set="Oct 20 15:52:29 2012"

3. Run the command below to confirm the date and time:

# date