I thought that "copying over" strange too and tried to reproduce it on a FC8
box in here, just by changing the link and got the same weird results.

If I use GMT+3 zone file, I got the clock showing 3 hours behind GMT and if
I use GMT-3 zone file, I got the clock showing 3 hours ahead GMT.

The same happened with a Ubuntu 8.04 box:

r...@box:~# date
Tue Apr 28 15:53:19 BRT 2009

  BRT is my localtime, which is GMT-3. Below are the subsequent commands
used:


r...@box:~# ln -svf /usr/share/zoneinfo/Etc/GMT-3 /etc/localtime
`/etc/localtime' -> `/usr/share/zoneinfo/Etc/GMT-3'
r...@box:~# date
Tue Apr 28 21:53:48 GMT-3 2009

r...@box:~# ln -svf /usr/share/zoneinfo/Etc/GMT+3 /etc/localtime
`/etc/localtime' -> `/usr/share/zoneinfo/Etc/GMT+3'
r...@box:~# date
Tue Apr 28 15:53:57 GMT+3 2009


r...@box:~# ln -svf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
`/etc/localtime' -> `/usr/share/zoneinfo/America/Sao_Paulo'
r...@box:~# date
Tue Apr 28 15:54:21 BRT 2009
r...@box:~#

A simple zdump <timezone file> will show you the time as in the timezone.

Ex.:
for tz in /usr/share/zoneinfo/Etc/*; do zdump $tz;done

It looks like all the Etc/GMT*  are the opposite of the signal somehow.

- MM


On Tue, Apr 28, 2009 at 3:06 PM, Scott Lawrence
<[email protected]>wrote:

> On Tue, 2009-04-28 at 14:16 +0000, Cristi Starasciuc wrote:
> > Hi,
> >
> > While working on: http://track.sipfoundry.org/browse/XX-5565
> > (Timezones are not applied properly) I came across a strange behavior
> > in Linux timezones settings:
> >
> > When I select non geographical tz things are looking quite bizzare:
> >
> > 1. time is now 15 08, TZ is Europe/Bucharest
> > date shows: Tue Apr 28 15:XX:XX EEST 2009
> > GMT is now 12:XX (Bucharest is now at GMT+3)
> > Sipxecs clock shows 15:xx - correct
> >
> > 2. I copy /usr/zoneinfo/Etc/GMT over /etc/localtime
> > date shows: Tue Apr 28 12:XX:XX GMT 2009 - correct
>
> When you say "copy xxx over /etc/localtime" do you mean that you
> actually us a file copy operation?
>
> /etc/localtime is usually a symbolic link - if you copy into it, you're
> overwriting the file it points to, which will mess things up pretty
> thoroughly...
>
> _______________________________________________
> sipx-dev mailing list
> [email protected]
> List Archive: http://list.sipfoundry.org/archive/sipx-dev
> Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
>
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to