public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Redouane Boumghar <redouane.boumghar@magellium.fr>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Clock is way off
Date: Wed, 09 May 2007 18:12:46 +0200	[thread overview]
Message-ID: <4641F2FE.709@magellium.fr> (raw)
In-Reply-To: <20070509155458.62ec598f@hactar.digimed.co.uk>

Hello everyone,

I recently had to reset my clock to a more "correct" (that may be subjective) setting.
In your case I would set my /etc/conf.d/clock file as:

CLOCK="UTC"
TIMEZONE="US/Pacific" 

then I would assure that my /etc/localtime file is correct with the next command:

$ cp  /usr/share/zoneinfo/US/Pacific /etc/localtime

If you have no zoneinfo files then consider emerging 'timezone-data'.
The setting like that should be fine and if you have an offset it's that your hardware clock
must be set to a time that is considered as UTC (since you have "CLOCK=UTC" in your conf)
while it's not.

So set your clock correctly  with rdate, ntp whatever...
and then write your system clock to your hardware clock (I guess this action is done at shut down).
You may use the following command :

$ hwclock --systohc

Then your machine is ready to have correct time as UTC. Be sure to have your profile
environnement variable TZ to be set to your timezone. In your .profile :

export TZ="US/Pacific";

Concerning dual boot.. as I am in !! Everywhere I could see advice to set my CLOCK var to "local"
but that's always a mess with the timezone... so the simple thing is to deactivate the Microsoft Windows
update or at least to set it to UTC time..
Thus keeping CLOCK="UTC" which would be a quite good standard.
But I understand Gentoo is installed to cause no harm to Windows, thats why there is this CLOCK="local" attitude
I guess.

Hope that helps
I'd be happy to share the pros and the cons...

-- 
Redouane BOUMGHAR
Physics, Remote Sensing and Digital Imagery Engineer

Neil Bothwick wrote:
> On Wed, 9 May 2007 14:27:52 +0000, Grant wrote:
> 
>> I have:
>>
>> -rw-r--r-- 1 root root 255 Apr 25 20:58 /etc/localtime
>>
>> on the laptop with the incorrect time, and the router with the correct
>> time.
> 
> That only tells us that /etc/localtime is a file, not which timezone data
> it contains. Re-emerging timezone-data will ensure that it has the data
> for the timezone you specified in /etc/conf.d/clock.
> 
> Setting the timezone in /etc/conf.d/clock has no effect until you next
> emerge timezone-data. A 255 byte /etc/localtime is probably either Factory
> or localtime, i.e. nothing has been set.
> 
> 

-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2007-05-09 16:18 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-08 23:56 [gentoo-user] Clock is way off Grant
2007-05-09  5:28 ` AJ Spagnoletti
2007-05-09  6:55 ` [gentoo-user] " Anno v. Heimburg
2007-05-09 14:27   ` Grant
2007-05-09 14:54     ` Neil Bothwick
2007-05-09 15:45       ` Grant
2007-05-09 16:12       ` Redouane Boumghar [this message]
2007-05-09 17:05         ` Dale
2007-05-09 17:17           ` Uwe Thiem
2007-05-09 17:28           ` Neil Bothwick
2007-05-09 17:53             ` [gentoo-user] Separate /usr [was: Clock is way off] Benno Schulenberg
2007-05-09 18:19               ` Neil Bothwick
2007-05-09 18:29               ` Randy Barlow
2007-05-09 18:34               ` Albert Hopkins
2007-05-09 18:54               ` Daniel Iliev
2007-05-09 20:03                 ` Neil Bothwick
2007-05-09 21:21                   ` Daniel Iliev
2007-05-09 21:37                     ` Neil Bothwick
2007-05-10  6:56                       ` Naga
2007-05-10  8:20                         ` Neil Bothwick
2007-05-09 21:22                   ` Boyd Stephen Smith Jr.
2007-05-09 21:52                     ` Mick
2007-05-09 21:49               ` darren kirby
2007-05-09 23:01                 ` Bo Ørsted Andresen
2007-05-09 23:31                   ` Neil Bothwick
2007-05-10  2:16                   ` Aleksandar L. Dimitrov
2007-05-10  7:28                   ` Alan McKinnon
2007-05-09 23:06                 ` Neil Bothwick
2007-05-10  0:31                   ` darren kirby
2007-05-10  0:55                     ` Neil Bothwick
2007-05-10  2:01                       ` darren kirby
2007-05-10  7:31                   ` Alan McKinnon
2007-05-10  8:24                     ` Neil Bothwick
2007-05-10  8:41                       ` [gentoo-user] Re: Separate /usr Alexander Skwar
2007-05-10  9:40                         ` Neil Bothwick
2007-05-10 10:11                           ` Benno Schulenberg
2007-05-10 10:34                             ` Neil Bothwick
2007-05-10 21:36                               ` Dan Farrell
2007-05-11  5:51                                 ` Andrey Gerasimenko
2007-05-09 18:54             ` [gentoo-user] Re: Clock is way off Dale

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=4641F2FE.709@magellium.fr \
    --to=redouane.boumghar@magellium.fr \
    --cc=gentoo-user@lists.gentoo.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