LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-11-2007, 02:56 AM   #1
lieuquocdat
Member
 
Registered: Jun 2006
Posts: 34

Rep: Reputation: 15
wrong date in linux



I using Red hat linux, date of system is not exact. sometime I issue the command date mmddhhss to edit the system date. Anybody can tell me how to resolve this problem. Thanks anyway.
 
Old 05-11-2007, 08:02 PM   #2
Mustafa^Qasim
Member
 
Registered: Dec 2005
Location: Lahore, PK
Distribution: Fedora 14
Posts: 105

Rep: Reputation: 16
CMOS battery

check out wether you CMOS bettery ( the small cell on your mother board to supply power to BIOS when computer is turned off so, BIOS can keep save his settings including System Clock) is in working condition or has expired. Mostly this problem is caused by an empty CMOS battery. By putting a new CMOS battery your BIOS will not again forget the system time when u'll start ur computer next time.
 
Old 05-18-2007, 08:06 PM   #3
Mirkridian
LQ Newbie
 
Registered: Sep 2006
Distribution: Fedora
Posts: 10

Rep: Reputation: 0
I had a problem similar to this, and this is how I remember fixing it. I'm not sure if the commands are exact.

To my knowledge, or at least on my computer, the date command only adjusts the date or time for that session. I had to syncronize it with the hardware clock to get it to change permanently. "hwclock --systohc" I believe was the command I used (after running date to change the system clock).

Also, you can change the hardware clock (hwclock) directly by the "hwclock --set --date="05/18/2007 18:00:00" and then "hwclock --hctosys", which should syncronize it with the system clock.

Cheers.
 
  


Reply


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
0 reply threads wrong date stress_junkie LQ Suggestions & Feedback 4 09-22-2006 10:19 AM
wrong date on sent mails using qmail NuLLiFiEd Slackware 3 11-23-2004 05:50 PM
Date and time always wrong snatale1 Linux - General 6 12-13-2003 11:27 PM
the format of the date in stat in wrong rhuser Programming 9 03-16-2003 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:57 AM.

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