* system clock...
@ 2004-10-01 17:53 Ankit Jain
2004-10-01 18:03 ` J. David Boyd
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ankit Jain @ 2004-10-01 17:53 UTC (permalink / raw)
To: admin
hi
i have a problem with my system clock.
whenever i reboot or start my system my clock is
incremented by around 6 hrs. after that its alright
i.e if i correct the time it dosent mis behave but i
dont know whats wrong in reboot or booting the sys?
if somebody can help or faced this kinda situation?
thanks
ankit jain
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: system clock...
2004-10-01 17:53 system clock Ankit Jain
@ 2004-10-01 18:03 ` J. David Boyd
2004-10-01 18:04 ` Kurt Wall
2004-10-01 19:52 ` Simon Valiquette
2 siblings, 0 replies; 4+ messages in thread
From: J. David Boyd @ 2004-10-01 18:03 UTC (permalink / raw)
To: linux-admin
Ankit Jain <ankitjain1580@yahoo.com> writes:
> hi
>
> i have a problem with my system clock.
>
> whenever i reboot or start my system my clock is
> incremented by around 6 hrs. after that its alright
> i.e if i correct the time it dosent mis behave but i
> dont know whats wrong in reboot or booting the sys?
>
> if somebody can help or faced this kinda situation?
>
This seems to be a common problem. I've had it myself, but I don't recall how
I fixed it, it was something to do with a setting in my Mandrake Linux control
panel.
I just saw a document here last week that referenced this problem, and how to
fix it, so hopefully someone will come along with the answer.
The problem is that your real-time hardware clock is using a different time
zone than your system clock, so when you reboot, one or the other updates the
other one, and things go awry...
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: system clock...
2004-10-01 17:53 system clock Ankit Jain
2004-10-01 18:03 ` J. David Boyd
@ 2004-10-01 18:04 ` Kurt Wall
2004-10-01 19:52 ` Simon Valiquette
2 siblings, 0 replies; 4+ messages in thread
From: Kurt Wall @ 2004-10-01 18:04 UTC (permalink / raw)
To: admin
On Fri, Oct 01, 2004 at 06:53:13PM +0100, Ankit Jain took 24 lines to write:
> hi
>
> i have a problem with my system clock.
>
> whenever i reboot or start my system my clock is
> incremented by around 6 hrs. after that its alright
> i.e if i correct the time it dosent mis behave but i
> dont know whats wrong in reboot or booting the sys?
>
> if somebody can help or faced this kinda situation?
hwclock shouls fix your situation.
Kurt
--
"I found out why my car was humming. It had forgotten the words."
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: system clock...
2004-10-01 17:53 system clock Ankit Jain
2004-10-01 18:03 ` J. David Boyd
2004-10-01 18:04 ` Kurt Wall
@ 2004-10-01 19:52 ` Simon Valiquette
2 siblings, 0 replies; 4+ messages in thread
From: Simon Valiquette @ 2004-10-01 19:52 UTC (permalink / raw)
To: Ankit Jain; +Cc: admin
Ankit Jain a écrit :
> hi
>
> i have a problem with my system clock.
>
> whenever i reboot or start my system my clock is
> incremented by around 6 hrs. after that its alright
> i.e if i correct the time it dosent mis behave but i
> dont know whats wrong in reboot or booting the sys?
>
> if somebody can help or faced this kinda situation?
>
Typically, it is just a problem between the hardware clock using
local time and the kernel using UTC (Greenwich time) or the opposite.
You have to know that there is a hardware clock (in the BIOS) and a
software clock. Windows use local time for the BIOS, while Linux
normally use UTC. So, if you reboot in Windows, the time will be
correct. Since Linux think that the BIOS is in UTC, it set its software
clock with the time it found in the BIOS, and add (or substract) hours
depending of the user time zone.
"date" set only the software time. "hwclock" is the one used at boot
time to set the software clock.
Try this as root (or pick a look at /etc/adjtime ):
hwclock --utc
hwclock --localtime
It shows the time of your BIOS, and one of them is probably good.
The simpliest is to just set your software time as you did, and set the
hardware clock the way you want (UTC or local time).
hwclock --utc --systohc
hwclock --localtime --systohc
If you use Windoze, takes what works from the previous commands
(probably --localtime) otherwise it is windows that will get the time
wrong after the next reboot. If you use only Linux/Unix, I would prefer
to use --UTC but both works.
Finally, it is also possible that your timezone is not properly
adjusted in Linux (see tzset), but most people adjust it properly during
Linux installation.
Simon Valiquette
http://www.gulus.org
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-01 19:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-01 17:53 system clock Ankit Jain
2004-10-01 18:03 ` J. David Boyd
2004-10-01 18:04 ` Kurt Wall
2004-10-01 19:52 ` Simon Valiquette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).