Web Projects Consulting

Set System Time From Command Line

How to quickly set the desired system time without using interfaces which hide form you somewhere in the a wm control center?  With the switch to summer time from winter time, these  simple questions sometimes need googling.


The format used is 24-hours (13:00 instead of 1pm), just replace “MM/DD/YYYY HH:MM:SS” to the correct current time and issue the following:

sudo date -s "MM/DD/YYYY HH:MM:SS"
sudo hwclock -r
sudo hwclock --adjust
sudo hwclock --systohc

KDE widgets should react to that immediately in Fedora 12.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.