LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-13-2006, 12:21 AM   #1
Winanjaya
Member
 
Registered: Sep 2003
Posts: 208

Rep: Reputation: 31
Adjust system date to hardware clock


Dear Expert,

I am new to Linux, how to use hardware clock instead of system date? ..
I configured hardware clock by running
[root@proxy-HO guest]# /sbin/hwclock --set --date="10/13/06 12:23"
[root@proxy-HO guest]# /sbin/hwclock --show
Fri Oct 13 12:23:05 2006 -0.612633 seconds
[root@proxy-HO guest]#

then set system date by running:
[root@proxy-HO guest]# date 1013122306
Fri Oct 13 12:23:00 WIT 2006

after my linux restarted the system date increased +8 .. why? ..
in my /etc/sysconfig/clock

ZONE="Asia/Jakarta"
UTC=false
ARC=false

please help ..

Thanks & Regards
Winanjaya
 
Old 10-13-2006, 05:52 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,987
Blog Entries: 54

Rep: Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742
how to use hardware clock instead of system date?
If you want to take time from the hardware clock you use "hwclock --hctosys".


after my linux restarted the system date increased +8 .. why?
Beats me. Is /usr/share/zoneinfo/Asia/Jakarta linked to /etc/localtime?
Does date return to normal when you sync using NTP?
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
cant adjust time or date eroica Linux - Software 4 08-10-2005 01:35 PM
system clock,hardware clock varunbihani Linux - Newbie 2 07-23-2005 09:04 AM
How do I adjust the clock? atheist Linux - General 8 02-18-2004 09:15 PM
Hardware and System Clock GruiX Linux - Software 5 02-09-2004 01:28 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration