Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-29-2008, 03:13 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
date --set has fixed the time

I tried to set date with;
date --set="21:54:00 2008-12-29"
and now time is stopped on that moment, cute? :-)

mug:/# date -u; sleep 10; date -u
Mon Dec 29 21:54:00 UTC 2008
Mon Dec 29 21:54:00 UTC 2008
What to do now? Any help would be appreciated.
Old 12-29-2008, 03:34 PM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Welcome to LQ!!

I cannot duplicate this. Try re-issuing the same command with different parameters---see if it changes correctly.

Try hwclock -r to see what the hardware clock is doing.

hwclock -w to set the hardware clock to system time (what date reports)

hwclock -s to set the system time from the HW clock

And finally, the ever-popular re-boot (See what re-booting does)
Old 12-30-2008, 10:23 AM   #3
LQ Newbie
Registered: Dec 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Rebooting shifted the date to its initial value; 15-12-2028 balblabla...
I ran "hwclock -s", the date is fixed (corrected).
Then, date --set="17:18:00" and hour is also fixed. And finally ran "hwclock -w" and fixed the hardware clock as well.

Thank you very much.


date, debian, fixed, hwclock, set, stop, system, time

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot set time/date to other time zone than UTC (Kubuntu) jamangold Ubuntu 1 12-23-2005 06:42 PM
how to set date and time thick_guy_9 Slackware 8 07-07-2005 09:46 AM
date command do not keep time set shanenin Linux - Software 1 09-04-2004 09:16 PM
Set Date/Time Under AIX dvong3 AIX 2 04-10-2004 12:54 PM
set date and time maggielmk Programming 3 10-24-2001 02:21 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration