Re: Time Zone

2002-03-21 Thread Robert Dege


That did it... thanks

On Thu, 2002-03-21 at 13:18, Emmanuel Seyman wrote:
> On Thu, Mar 21, 2002 at 05:47:56AM -0500, dbrett wrote:
> >
> > One way is to log in as root and run setup.  The second last selection is
> > 'Timezone configuration'
> 
> Or type `timeconfig` which does the same thing.
> 
> Emmanuel
> 
> 
> 
> ___
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 




___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: Time Zone

2002-03-21 Thread Emmanuel Seyman

On Thu, Mar 21, 2002 at 05:47:56AM -0500, dbrett wrote:
>
> One way is to log in as root and run setup.  The second last selection is
> 'Timezone configuration'

Or type `timeconfig` which does the same thing.

Emmanuel



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: Time Zone

2002-03-21 Thread dbrett

One way is to log in as root and run setup.  The second last selection is
'Timezone configuration'

david

On 21 Mar 2002, Robert Dege wrote:

> Somehow, when I installed RedHat 7.2, my TimeZone was set to GMT,
> instead of EST (or America/NewYork in /etc/sysconfig/clock).  I have
> since corrected the file, but even upon reboot, `date` still reports it
> as GMT-5, and ntp resets my time accordingly.
> 
> I see that /sbin/hwclock can be used to alter the time, but I don't know
> how to reset the zone.  Any help is appreciated.
> 
> -Rob 
> 
> 
> 
> 
> 
> 
> ___
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Time Zone

2002-03-21 Thread Robert Dege

Somehow, when I installed RedHat 7.2, my TimeZone was set to GMT,
instead of EST (or America/NewYork in /etc/sysconfig/clock).  I have
since corrected the file, but even upon reboot, `date` still reports it
as GMT-5, and ntp resets my time accordingly.

I see that /sbin/hwclock can be used to alter the time, but I don't know
how to reset the zone.  Any help is appreciated.

-Rob 






___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: named is logging in the wrong time zone

2000-10-30 Thread Dan Horth

that does seem to make sense... and it works! :)

thanks for that - this is my first chroot-ing experience!

thanks again - dan.

At 7:25 AM -0600 30/10/00, Bret Hughes wrote:
>My guess, and it is just a guess is that named cannot find any time zone
>information since it it chrooted.  Can you give it a copy of /etc/locatime or
>what ever the program needs to be able to tell where it is?
-- 

Nitro - 3D Visualisation, Graphics & Animation
Ph (+61 2) 9810 5177 - Fx (+61 2) 9810 0199
http://www.nitro.com.au/



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: named is logging in the wrong time zone

2000-10-30 Thread Bret Hughes

Dan Horth wrote:

> Hi - I set up our named server on one of our test servers in a chroot
> jail over the weekend in our ongoing effort to tighten security as
> much as possible, and have noticed a strange thing - in that named is
> logging all it's info to the syslog at a different time to the rest
> of the stuff being logged to the syslog.
>
> as far as I can tell named is logging it's entries in UTC while the
> rest of the entries are in the local (UTC + 11) timezone
>
> ie:
>
> Oct 30 11:50:41 guineapig sshd[408]: Generating new 768 bit RSA key.
> Oct 30 11:50:41 guineapig sshd[408]: RSA key generation complete.
> Oct 30 00:51:21 guineapig named[21198]: ns_resp: query(yahoo.co.uk)
> NS points to CNAME
> Oct 30 01:06:10 guineapig named[21198]: Cleaned cache of 181 RRsets
> Oct 30 12:08:27 guineapig afpd[27265]: logout
> Oct 30 12:08:27 guineapig afpd[27265]: 92.76KB read, 45.49KB written
> Oct 30 12:08:27 guineapig PAM_pwdb[27265]: (netatalk) session closed
> for user bernie
> Oct 30 12:08:27 guineapig afpd[615]: server_child[1] 27265 done
> Oct 30 02:06:10 guineapig named[21198]: Cleaned cache of 177 RRsets
> Oct 30 13:12:10 guineapig xntpd[423]: time reset (step) 0.404254 s
> Oct 30 13:12:10 guineapig xntpd[423]: synchronisation lost
> Oct 30 13:17:31 guineapig xntpd[423]: synchronized to 129.120.3.9, stratum=3
> Oct 30 03:06:10 guineapig named[21198]: Cleaned cache of 90 RRsets
>
> This only started happening since I set up the chroot jail - I'm
> guessing it has to do with the /chroothome/bind/dev/log device node
> thingy I had to set up as part of the chrooting process:
>
> srw-rw-rw-   1 bindbind0 Oct 29 22:54 /chroothome/bind/dev/log
>
> and this entry in /etc/rc.d/init.d/syslog to start syslog paying
> attention to the new log device node thing:
>
> daemon syslogd -m 0 -a /chroothome/bind/dev/log
>
> does anyone know what might be going on here?

My guess, and it is just a guess is that named cannot find any time zone
information since it it chrooted.  Can you give it a copy of /etc/locatime or
what ever the program needs to be able to tell where it is?

Bret



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



named is logging in the wrong time zone

2000-10-29 Thread Dan Horth

Hi - I set up our named server on one of our test servers in a chroot 
jail over the weekend in our ongoing effort to tighten security as 
much as possible, and have noticed a strange thing - in that named is 
logging all it's info to the syslog at a different time to the rest 
of the stuff being logged to the syslog.

as far as I can tell named is logging it's entries in UTC while the 
rest of the entries are in the local (UTC + 11) timezone

ie:

Oct 30 11:50:41 guineapig sshd[408]: Generating new 768 bit RSA key.
Oct 30 11:50:41 guineapig sshd[408]: RSA key generation complete.
Oct 30 00:51:21 guineapig named[21198]: ns_resp: query(yahoo.co.uk) 
NS points to CNAME
Oct 30 01:06:10 guineapig named[21198]: Cleaned cache of 181 RRsets
Oct 30 12:08:27 guineapig afpd[27265]: logout
Oct 30 12:08:27 guineapig afpd[27265]: 92.76KB read, 45.49KB written
Oct 30 12:08:27 guineapig PAM_pwdb[27265]: (netatalk) session closed 
for user bernie
Oct 30 12:08:27 guineapig afpd[615]: server_child[1] 27265 done
Oct 30 02:06:10 guineapig named[21198]: Cleaned cache of 177 RRsets
Oct 30 13:12:10 guineapig xntpd[423]: time reset (step) 0.404254 s
Oct 30 13:12:10 guineapig xntpd[423]: synchronisation lost
Oct 30 13:17:31 guineapig xntpd[423]: synchronized to 129.120.3.9, stratum=3
Oct 30 03:06:10 guineapig named[21198]: Cleaned cache of 90 RRsets

This only started happening since I set up the chroot jail - I'm 
guessing it has to do with the /chroothome/bind/dev/log device node 
thingy I had to set up as part of the chrooting process:

srw-rw-rw-   1 bindbind0 Oct 29 22:54 /chroothome/bind/dev/log

and this entry in /etc/rc.d/init.d/syslog to start syslog paying 
attention to the new log device node thing:

daemon syslogd -m 0 -a /chroothome/bind/dev/log

does anyone know what might be going on here?

TIA - dan.
-- 

Nitro - 3D Visualisation, Graphics & Animation
Ph (+61 2) 9810 5177 - Fx (+61 2) 9810 0199
http://www.nitro.com.au/



___
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: How to change time zone

2000-08-01 Thread John Aldrich

On Tue, 01 Aug 2000, Nitebirdz wrote:
> 
> In 5.2 is a symlink to a binary file, so if you run "file localtime" it
> does show that it is a binary file.  However, it still is a
> symlink.  Just to clarify. 
> 
They musta changed it sometime between 5.2 and 6.2, 'cause on my
RH 6.2 system here, there's no link, symbolic or otherwise. :-)
John


--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




Re: How to change time zone

2000-08-01 Thread Nitebirdz

On Tue, 1 Aug 2000, John Aldrich wrote:

> On Tue, 01 Aug 2000, Nitebirdz wrote:
> > Not running 6.2 here, but if I go to /etc and run "ls -l" it shows that
> > the file localtime is actually a symnbolic link that should be pretty much
> > self-explanatory.  I have a feeling if you set up a link to the correct
> > target according to your timezone that should fix it... although as I
> > said, I cannot be sure because I'm not running 6.2 anyway.  Just an idea
> > to try.  Let me know if that doesn't fix it so I don't open my mouth the
> > next time.  :-)
> > 
> > 
> Just for the record, in RH 6.2 the /etc/localtime is NOT a symlink.
> It's a binary file.
>   John
> 

In 5.2 is a symlink to a binary file, so if you run "file localtime" it
does show that it is a binary file.  However, it still is a
symlink.  Just to clarify. 

--
Nitebirdz
http://www.linuxnovice.org
Tips, articles, news, links...


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




how to change time zone solved

2000-08-01 Thread Jim Baxter

Thanks for the help.
timconfig works great.


Jim Baxter


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




Re: How to change time zone

2000-08-01 Thread Anthony E . Greene

On 01 Aug 2000 16:58 Jim Baxter wrote:
>One of our people installed RH 6.2 and set up the wrong timezone. I need
to
>change from CDT to MDT. Could some one please lead me to the correct man
>page, I have tried to find commands undex timezone and date but no luck.

/usr/sbin/timeconfig

-- 
Anthony E. Greene <[EMAIL PROTECTED]> 
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
Linux. The choice of a GNU Generation. 


--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




Re: How to change time zone

2000-08-01 Thread John Aldrich

On Tue, 01 Aug 2000, Nitebirdz wrote:
> Not running 6.2 here, but if I go to /etc and run "ls -l" it shows that
> the file localtime is actually a symnbolic link that should be pretty much
> self-explanatory.  I have a feeling if you set up a link to the correct
> target according to your timezone that should fix it... although as I
> said, I cannot be sure because I'm not running 6.2 anyway.  Just an idea
> to try.  Let me know if that doesn't fix it so I don't open my mouth the
> next time.  :-)
> 
> 
Just for the record, in RH 6.2 the /etc/localtime is NOT a symlink.
It's a binary file.
John


--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




Re: How to change time zone

2000-08-01 Thread Bret Hughes

Easist way is to run Linuxconf as root, go down to the
bottom of the list and go into time and date.  select the
region from the dropdown.
It is what I do anyway.

BTW mad manners to send html to most mailing lists
(including this one)

Hope this helps,

Bret

Jim Baxter wrote:

> Hi, One of our people installed RH 6.2 and set up the
> wrong timezone. I need to change from CDT to MDT. Could
> some one please lead me to the correct man page, I have
> tried to find commands undex timezone and date but no
> luck. Thanks Jim [EMAIL PROTECTED]


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




Re: How to change time zone

2000-08-01 Thread Steve Borho

On Tue, Aug 01, 2000 at 04:53:30AM -0500, Nitebirdz wrote:
> On Tue, 1 Aug 2000, Jim Baxter wrote:
> 
> > Hi,
> > 
> > One of our people installed RH 6.2 and set up the wrong timezone.
> > I need to change from CDT to MDT. Could some one please lead me to
> > the correct man page, I have tried to find commands undex timezone
> > and date but no luck.
> > 
> 
> Not running 6.2 here, but if I go to /etc and run "ls -l" it shows that
> the file localtime is actually a symnbolic link that should be pretty much
> self-explanatory.  I have a feeling if you set up a link to the correct
> target according to your timezone that should fix it... although as I
> said, I cannot be sure because I'm not running 6.2 anyway.  Just an idea
> to try.  Let me know if that doesn't fix it so I don't open my mouth the
> next time.  :-)

The 'timeconfig' tool is helpful.

-- 
Steve Borho   Voice: TBA
Member of Technical Staff
Celox Networking Inc

Fortune of the day:
The reward for working hard is more hard work.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




Re: How to change time zone

2000-08-01 Thread Nitebirdz

On Tue, 1 Aug 2000, Jim Baxter wrote:

> Hi,
> 
> One of our people installed RH 6.2 and set up the wrong timezone. I need to change 
>from CDT to MDT. Could some one please lead me to the correct man page, I have tried 
>to find commands undex timezone and date but no luck.
> 

Not running 6.2 here, but if I go to /etc and run "ls -l" it shows that
the file localtime is actually a symnbolic link that should be pretty much
self-explanatory.  I have a feeling if you set up a link to the correct
target according to your timezone that should fix it... although as I
said, I cannot be sure because I'm not running 6.2 anyway.  Just an idea
to try.  Let me know if that doesn't fix it so I don't open my mouth the
next time.  :-)


--
Nitebirdz
http://www.linuxnovice.org
Tips, articles, news, links...


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




How to change time zone

2000-08-01 Thread Jim Baxter



Hi,
 
One of our people installed RH 6.2 and set up the 
wrong timezone. I need to change from CDT to MDT. Could some one please lead me 
to the correct man page, I have tried to find commands undex timezone and date 
but no luck.
 
Thanks
 
Jim Baxter
[EMAIL PROTECTED]
 


RE: Time Zone

2000-04-26 Thread Mikkel L. Ellertson

At 01:29 PM 4/26/00 +0100, you wrote:
>   Wow - that was quick.  Thanks!  Next question - I can use
>'date' to set the time - but how do I set BIOS time?? (Or view it, for that
>matter). Or is it setting BIOS time?  I'd always thought it was just
>manipulating OS time.  I'd like to leave the BIOS set at GMT (I'm in London,
>UK) but am having problems getting the OS to think about British Summer Time
>(GMT + 1 for 6 months of the year).  The best time zone I can find is
>'Europe/London'.  IS this BST aware?  Is there a better solution?
>
>   Thanks in advance,
>
>   Toby.
>
>
To set the "BIOS time", or hardware clock, try the /sbin/hwclock.  I can't
help with what time zone to use...

Mikkel

--
Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




Re: [REDHAT] RE: Time Zone

2000-04-26 Thread David Kramer

On Wed, 26 Apr 2000, Ounsted, Toby wrote:

>   Wow - that was quick.  Thanks!  Next question - I can use
> 'date' to set the time - but how do I set BIOS time?? (Or view it, for that
> matter). Or is it setting BIOS time?  I'd always thought it was just

hwclock

---
   David Kramer   http://kramer.ne.mediaone.net
DK KD  
DKK D  
DK KD  Pretense and adversity are inversely proportional;
   Adversity reveals the true nature of all things.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




RE: Time Zone

2000-04-26 Thread Ounsted, Toby

Wow - that was quick.  Thanks!  Next question - I can use
'date' to set the time - but how do I set BIOS time?? (Or view it, for that
matter). Or is it setting BIOS time?  I'd always thought it was just
manipulating OS time.  I'd like to leave the BIOS set at GMT (I'm in London,
UK) but am having problems getting the OS to think about British Summer Time
(GMT + 1 for 6 months of the year).  The best time zone I can find is
'Europe/London'.  IS this BST aware?  Is there a better solution?

Thanks in advance,

Toby.


-Original Message-
From:   Kurt Brust [mailto:[EMAIL PROTECTED]]
Sent:   26 April 2000 13:03
To: [EMAIL PROTECTED]; Ounsted, Toby;
'[EMAIL PROTECTED]'
Subject:Re: Time Zone

timeconfig

On Wed, 26 Apr 2000, Ounsted, Toby wrote:
    > Quick one - where is my time zone information stored??
> 
> Toby.
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe"
> as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




Re: Time Zone

2000-04-26 Thread Kurt Brust

timeconfig

On Wed, 26 Apr 2000, Ounsted, Toby wrote:
> Quick one - where is my time zone information stored??
> 
> Toby.
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




Time Zone

2000-04-26 Thread Ounsted, Toby

Quick one - where is my time zone information stored??

Toby.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.




Re: Time zone configuration

1999-11-23 Thread Dirk Laurie

Jonathan Ruano skryf:
> 
> On Mon, Nov 22, 1999 at 06:51:46PM +0200, Dirk Laurie wrote:
> 
> > hardware clock.  I can type "hwclock --hctosys" and then it's OK.
> > So somewhere in the boot-up scripts the GMT must have got hardcoded
> > at installation time.  Any idea where?
> /etc/sysconfig/clock
> 
> UTC=no
> 
No, that one gets fixed by timeconfig.  I've got some extracts from
/var/log/messages that say where things go wrong.  Unfortunately that
doesn't tell me what to fix.

The first set comes from bootup:

Nov 23 05:33:21 collatz atd: atd startup succeeded
Nov 23 07:33:06 collatz rc.sysinit: Loading default keymap succeeded 
Nov 23 07:33:06 collatz rc.sysinit: Setting default font succeeded 
...
Nov 23 07:33:14 collatz fsck: /dev/hda6: clean, 9181/132600 files, 113856/529168
 blocks 
Nov 23 07:33:14 collatz rc.sysinit: Checking filesystems succeeded 
Nov 23 07:33:16 collatz rc.sysinit: Mounting local filesystems succeeded 
Nov 23 07:33:16 collatz rc.sysinit: Turning on user and group quotas for local f
ilesystems succeeded 
Nov 23 05:33:19 collatz date: Tue Nov 23 05:33:19 SAST 1999 
Nov 23 05:33:19 collatz rc.sysinit: Setting clock : Tue Nov 23 05:33:19 SAST 199
9 succeeded 
Nov 23 05:33:19 collatz rc.sysinit: Enabling swap space succeeded 
Nov 23 05:33:19 collatz init: Entering runlevel: 3 

So when atd starts, it gets information that time is GMT and resets system
time.  Then it stays there for a while, until rc.sysinit obviously working
off /etc/sysconfig/clock as it should, sets the clock back to the hardware 
reading.  

The next extract comes from a point when apmd made my screen go blank:

Nov 23 09:37:16 collatz PAM_pwdb[285]: (login) session opened for user dirk by (
uid=0)
Nov 23 12:47:28 collatz apmd[122]: Resume after 02:16:53 (65% unknown)
Nov 23 13:01:19 collatz sudo: dirk : TTY=pts/0 ; PWD=/home/dirk/kantoor/navo
rs/artikels/gauss-survey ; USER=root ; COMMAND=/sbin/hwclock --hctosys 
Nov 23 11:02:26 collatz sudo: dirk : TTY=tty1 ; PWD=/home/dirk/kantoor/navor
s/artikels/gauss-survey ; USER=root ; COMMAND=/usr/bin/less /var/log/messages 

I had been working for about an hour and then went for tea.  Coming back,
I reactivated the screen, discovered that GMT had reasserted itself, and
manually reset the system clock.

These two-hour jumps to and fro can't be good for the integrity of the
system.

IMHO the above behaviour is a bug, caused by some old code somewhere
that dates back to the days before we had /etc/sysconfig.  But where
does that code get its information?

Dirk


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.



Re: Time zone configuration

1999-11-22 Thread Jonathan Ruano

On Mon, Nov 22, 1999 at 06:51:46PM +0200, Dirk Laurie wrote:

> hardware clock.  I can type "hwclock --hctosys" and then it's OK.
> So somewhere in the boot-up scripts the GMT must have got hardcoded
> at installation time.  Any idea where?
/etc/sysconfig/clock

UTC=no

-- 
Jonathan Ruano PachEmail: <[EMAIL PROTECTED]>
ICQ:1252101 AIM:Tlabok IRC:Kobalt  Homepage: http://www.encomix.es/~jonah


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.



Time zone configuration

1999-11-22 Thread Dirk Laurie

When I installed RH6.0, I thought that keeping the hardware clock
on GMT was the proper thing to do.  Unfortunately it does not make
for peaceful coexistence with 98, which also has its little corner
of the box.  Now I can't get back to local time.  I've run timeconfig
again, deselected the "Clock set to GMT" box, but each time I boot
up (this is a notebook computer) it adds the difference to the
hardware clock.  I can type "hwclock --hctosys" and then it's OK.
So somewhere in the boot-up scripts the GMT must have got hardcoded
at installation time.  Any idea where?

Dirk


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.



Re: Time Zone difficulties

1999-11-16 Thread tom minchin

On Tue, Nov 16, 1999 at 08:47:31PM -0800, Stephen King wrote:
> This may seem trivial and well, it is, but I cannot seem to set the system
> to the correct zone.  It insists on being EST instead of PST.  This throws
> the time off and my logs are difficult to read/calculate.  I used date -s
> 'PST' to no avail and linuxconf to set the zone to the West coast, also to
> no avail.  The BIOS clock is set to GMT and the date is set correctly as
> EST, so there's nothing wrong with it, other than I can't reset it.  I can
> alter the time with the date -s command, but not the zone.  Any ideas?
> 

Use the 'setup' utility as root, you can change the timezone easily.

[EMAIL PROTECTED]


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.



Time Zone difficulties

1999-11-16 Thread Stephen King

This may seem trivial and well, it is, but I cannot seem to set the system
to the correct zone.  It insists on being EST instead of PST.  This throws
the time off and my logs are difficult to read/calculate.  I used date -s
'PST' to no avail and linuxconf to set the zone to the West coast, also to
no avail.  The BIOS clock is set to GMT and the date is set correctly as
EST, so there's nothing wrong with it, other than I can't reset it.  I can
alter the time with the date -s command, but not the zone.  Any ideas?

 Stephen King • Crazed Artist Studios
 http://www.crazedartist.com • ftp.crazedartist.com
 [EMAIL PROTECTED] • Voice (253) 856-1874


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.



Re: strange time zone behaviour by linux on windoze partition

1998-09-09 Thread Eric W. Biederman

>>>>> "TN" == Tony Nugent <[EMAIL PROTECTED]> writes:

TN> System: i386 RedHat 5.1 (glibc6)
TN> I have not seen this problem myself, but I am passing this on as I am the
TN> linux support person here at USQ.  This is what has been described to me,
TN> and I haven't a clue as to why this is happening.  However, I suspect that
TN> it could be a glibc issue...

TN> When linux boots up and uses the system time, it all looks ok.  We are
TN> GMT+10 hours here (Queensland Australia), and the bios clock is set at the
TN> local time.  /etc/localtime is a symlink pointing to the correct
TN> /usr/share/zoneinfo/ file.

TN> Write a file to a vfat-mounted dos partition with linux and the timestamps
TN> look good - the correct (current) time as would be expected.  (Of course,
TN> same for timestamps on new files on the linux filesystem).

TN> Boot into windows and the timestamps on any of these files are 10 hours
TN> behind!

TN> Create new files with the current timestamp with windose and all looks
TN> good.  But boot into linux and look at those files -- they are 10 hours
TN> ahead!  (Which means thay can be set for a time in the future).

TN> This is obviously a problem related to the local time difference, but what
TN> is going on?

TN> Is windows at fault, or linux?  Or have we just discovered the secrets of a
TN> time-travel machine?? :-)

Looking at 2.0.32 this is what I see.
The kernel keeps track of the local time, which is set bye the
system call settimeofday.

When a fat filesystem date is converted to a unix date minuteswest minutes are added
to the time.

When a unix date is converted to a fat filesystem date minuteswest are subtracted
from the current time.

So it appears that the linux kernel has the wrong idea of the local time zone, a la
minueswest.

As I understand it the first call to settimeofday that includes time zone 
information must have the correct time zone set, to give linux the proper
system time (from the real time clock).  So the time zone got set
right at least once.  
For machines with clocks in UTC the first call to settimeofday with a
time zone specified must not set a time zone offset (minuteswest).

All further calls to settimeofday (with a time zone specified) just
affect the kernel's notion of local time.

So a call to settimeofday with an appropriate time zone value should
fix the problem.  Why this doesn't happen automatically I don't know.

I hope this helps,
Eric



Re: strange time zone behaviour by linux on windoze partition

1998-09-08 Thread Dave Mielke

Have you checked "/etc/sysconfig/clock" to insure that "UTC" is "false"? 

-- 
Dave Mielke   | Phone: 1-613-726-0014
856 Grenon Avenue | Email: [EMAIL PROTECTED]
Ottawa, Ontario   |
Canada  K2B 6G3   |



strange time zone behaviour by linux on windoze partition

1998-09-08 Thread Tony Nugent

System: i386 RedHat 5.1 (glibc6)

I have not seen this problem myself, but I am passing this on as I am the
linux support person here at USQ.  This is what has been described to me,
and I haven't a clue as to why this is happening.  However, I suspect that
it could be a glibc issue...

When linux boots up and uses the system time, it all looks ok.  We are
GMT+10 hours here (Queensland Australia), and the bios clock is set at the
local time.  /etc/localtime is a symlink pointing to the correct
/usr/share/zoneinfo/ file.

Write a file to a vfat-mounted dos partition with linux and the timestamps
look good - the correct (current) time as would be expected.  (Of course,
same for timestamps on new files on the linux filesystem).

Boot into windows and the timestamps on any of these files are 10 hours
behind!

Create new files with the current timestamp with windose and all looks
good.  But boot into linux and look at those files -- they are 10 hours
ahead!  (Which means thay can be set for a time in the future).

This is obviously a problem related to the local time difference, but what
is going on?

Is windows at fault, or linux?  Or have we just discovered the secrets of a
time-travel machine?? :-)

Thanks for any clues as to what could be going on and how to prevent this
from happening.

This querkiness is totally screwing up some scripts that are designed to
use file timestamps to keep in sync files that need to be kept on both
partitions.

Many thanks for any help.

Cheers .
Tony  __  Tony Nugent>> - Linux -  <<  _--_|\
 / / / / __/ __ \ [EMAIL PROTECTED]   >> UNIX power << / *\
/ /_/ /\ \/ /_/ / [EMAIL PROTECTED] >>  on a pc!  << \_.--._/
\/___/\___\_\ UNIX Systems Officer, Faculty of Science  v
 University of Southern Queensland, Toowoomba Oueensland Australia
-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-