DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Ubuntu - Set System Time

09.28.2008
| 12739 views |
  • submit to reddit
        If you want to manually update the system time on a Ubuntu server, here's one way to do it.  There are no doubt many other ways to skin this cat.

From a terminal:

hwclock --set --date="YYYY-MM-DD HH:MM:SS TIMEZONE"
hwclock -s