Re: [gentoo-user] Time issues

2005-04-05 Thread Rod

Philippe Gagnon wrote:
Nick Rout wrote:
On Tue, 05 Apr 2005 22:45:11 -0400
Philippe Gagnon wrote:
 

Nick Rout wrote:
  



lrwxrwxrwx  1 root root 36 Mar 12 10:15 /etc/localtime -> 
/usr/share/zoneinfo/America/Montreal

It seems okay to me.. But I still get issues. : - /
No TZ has been set.
  

what is the output of date?
do you dual boot windows?
what is CLOCK set to in /etc/rc.conf or /etc/conf.d/clock?
is /etc/init.d/clock in your runlevel? (should be in boot i think)
 

the output of date seems to be fixed if I do a "ntpdate 
time.nist.gov". But still, it's an annoyance having to stop ntpd, 
adjust the time, and restart ntpd every time I reboot. The clock is 
fine if I dual-boot windows and clock is in the boot runlevel as 
expected. :(
--
gentoo-user@gentoo.org mailing list

stop and start ntp every reboot?  shouldn't you have your scripts doing 
this?

This is what I have..
[EMAIL PROTECTED] ~ $ ls /etc/runlevels/default | grep ntp
ntp-client
ntpd
So on boot, ntp-client updates the time, and ntpd holds the time in sync 
(or until ntpd crashes for reasons I cannot fathom)

I am running dual boot (Gentoo/XP-SP2)
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Time issues

2005-04-05 Thread Philippe Gagnon
Nick Rout wrote:
On Tue, 05 Apr 2005 22:45:11 -0400
Philippe Gagnon wrote:
 

Nick Rout wrote:
   


 

lrwxrwxrwx  1 root root 36 Mar 12 10:15 /etc/localtime -> 
/usr/share/zoneinfo/America/Montreal
It seems okay to me.. But I still get issues. : - /
No TZ has been set.
   

what is the output of date?
do you dual boot windows?
what is CLOCK set to in /etc/rc.conf or /etc/conf.d/clock?
is /etc/init.d/clock in your runlevel? (should be in boot i think)
 

the output of date seems to be fixed if I do a "ntpdate time.nist.gov". 
But still, it's an annoyance having to stop ntpd, adjust the time, and 
restart ntpd every time I reboot. The clock is fine if I dual-boot 
windows and clock is in the boot runlevel as expected. :(
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Time issues

2005-04-05 Thread Nick Rout

On Tue, 05 Apr 2005 22:45:11 -0400
Philippe Gagnon wrote:

> Nick Rout wrote:
> 
> >  
> >
> lrwxrwxrwx  1 root root 36 Mar 12 10:15 /etc/localtime -> 
> /usr/share/zoneinfo/America/Montreal
> 
> It seems okay to me.. But I still get issues. : - /
> 
> No TZ has been set.

what is the output of date?
do you dual boot windows?
what is CLOCK set to in /etc/rc.conf or /etc/conf.d/clock?
is /etc/init.d/clock in your runlevel? (should be in boot i think)

> 
> --
> gentoo-user@gentoo.org mailing list

-- 
Nick Rout

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Time issues

2005-04-05 Thread Philippe Gagnon
Nick Rout wrote:
your system time should be in UTC, the kernel keeps track of time in UTC, there 
is no alternative.
If your problem is the reporting of time when, for example, you use the date 
command, then that is converted to localtime in two steps:
1. the system wide file called /etc/localtime, which should be a link to your 
locale in /usr/share/zoneinfo like this:
[EMAIL PROTECTED] nick $ ls -l /etc/localtime
lrwxrwxrwx  1 root root 36 Aug  7  2003 /etc/localtime -> 
/usr/share/zoneinfo/Pacific/Auckland
2. the TZ variable, which allows individual users to vary from the
system wide locale, eg if you logged into my server from the other side
of the world you may want to set TZ so you got your local time.
example:
[EMAIL PROTECTED] nick $ date
Wed Apr  6 13:53:16 NZST 2005
[EMAIL PROTECTED] nick $ TZ=PST date
Wed Apr  6 01:53:23 PST 2005
Short story, check your /etc/localtime link.
On Tue, 05 Apr 2005 20:49:06 -0400
Philippe Gagnon wrote:
 

Greetings,
My system seems to reset the system time to UTC each times I reboot. Is 
there anyway to fix this?

Thanks.
Philippe.
--
gentoo-user@gentoo.org mailing list
   


 

lrwxrwxrwx  1 root root 36 Mar 12 10:15 /etc/localtime -> 
/usr/share/zoneinfo/America/Montreal
It seems okay to me.. But I still get issues. : - /
No TZ has been set.
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] Time issues

2005-04-05 Thread Nick Rout
your system time should be in UTC, the kernel keeps track of time in UTC, there 
is no alternative.

If your problem is the reporting of time when, for example, you use the date 
command, then that is converted to localtime in two steps:

1. the system wide file called /etc/localtime, which should be a link to your 
locale in /usr/share/zoneinfo like this:

[EMAIL PROTECTED] nick $ ls -l /etc/localtime
lrwxrwxrwx  1 root root 36 Aug  7  2003 /etc/localtime -> 
/usr/share/zoneinfo/Pacific/Auckland

2. the TZ variable, which allows individual users to vary from the
system wide locale, eg if you logged into my server from the other side
of the world you may want to set TZ so you got your local time.

example:

[EMAIL PROTECTED] nick $ date
Wed Apr  6 13:53:16 NZST 2005
[EMAIL PROTECTED] nick $ TZ=PST date
Wed Apr  6 01:53:23 PST 2005


Short story, check your /etc/localtime link.

On Tue, 05 Apr 2005 20:49:06 -0400
Philippe Gagnon wrote:

> Greetings,
> 
> My system seems to reset the system time to UTC each times I reboot. Is 
> there anyway to fix this?
> 
> Thanks.
> Philippe.
> --
> gentoo-user@gentoo.org mailing list

-- 
Nick Rout

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Time issues

2005-04-05 Thread Jamie Dobbs
> Greetings,
>
> My system seems to reset the system time to UTC each times I reboot. Is
> there anyway to fix this?
>
> Thanks.
> Philippe.

I had the same issue and resolved it by editing /etc/conf.d/clock and
ensuring that the lines

CLOCK = "local"

and

CLOCK_SYSTOHC="yes"

are present.

This ensures that your clock is running on "local" time rather then UTC
(GMT) and syncs your software clock to the computers hardware clock on a
reboot/shutdown.

...at least that's my understanding of it, someone please correct me if I
am wrong.



--
gentoo-user@gentoo.org mailing list