LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 07: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, 07: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



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 09:19 AM
wrong date on sent mails using qmail NuLLiFiEd Slackware 3 11-23-2004 04:50 PM
Date and time always wrong snatale1 Linux - General 6 12-13-2003 10:27 PM
the format of the date in stat in wrong rhuser Programming 9 03-16-2003 12:46 PM

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

All times are GMT -5. The time now is 09:34 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
Open Source Consulting | Domain Registration