public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: system clock...
Date: Fri, 01 Oct 2004 11:19:42 -0700	[thread overview]
Message-ID: <5.1.0.14.1.20041001110755.01f4de30@celine> (raw)
In-Reply-To: <20041001175313.2156.qmail@web52903.mail.yahoo.com>

At 06:53 PM 10/1/2004 +0100, Ankit Jain wrote:
>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?

Where do you live? Not your street address, just your local time zone.

It is likely that there is a mismatch between the way your hardware clock 
is set and the way Linux thinks it is set. For example, your hardware clock 
is set for local time, but Linux thinks it is set for UT (Universal Time, 
also called Greenwich Time), so during boot/init converts this setting to 
your local  time zone. Or it may be the other way around, depending on 
whether your local time zone is +600 or -600.

Or, just conceivably, there is a time-zone mismatch between the init script 
that reads the hardware clock and the shutdown script that uses the kernel 
clock to update the hardware clock.

The details of how to fix this depend on which way the problem is 
occurring, which way you need your hardware clock to be set (for example, 
if you dual boot, I believe Windows expects the hardware clock to show 
local time; Linux-only systems customarily run UT hardware clocks), and 
what Linux distro/version you are using.

Oh, one last thing ... you say "around" 6 hours, not exactly 6 hours. This 
indicates clock drift in the hardware clock, a very normal thing on PCs, 
which use very cheap clock hardware. The usual solution to clock drift, 
under Linux (and even under Windows), is to use an NTP (Network Time 
Protocol) deamon to sync the kernel clock to an ntp server and to correct 
for drift locally. Read up on this in the usual places, including the man 
pages for ntpd (the daemon) and ntpdate (a client that only re-syncs the 
clock periodically, normally from a cron script).



-
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

      reply	other threads:[~2004-10-01 18:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-01 17:53 system clock Ankit Jain
2004-10-01 18:19 ` Ray Olszewski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.1.0.14.1.20041001110755.01f4de30@celine \
    --to=ray@comarre.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox