1748226 Members
4553 Online
108759 Solutions
New Discussion юеВ

Brazilian Timezone

 
Michael T. Harding
Occasional Advisor

Brazilian Timezone

Can anyone please advise as to what the official entry in /usr/lib/tztab should be for Brazilian Time.
My current entry shows:
# Brazil

BRA3BST
59 23 12-18 2 1997-1998 6 BRA3
59 23 19-25 2 1999-2001 6 BRA3
59 23 16-23 2 2002-2038 1 BRA3
59 23 02-08 10 1996-1997 6 BST2
59 23 09-15 10 1998-2000 6 BST2
00 01 19-25 10 2001-2038 1 BST2

I have another server also in Brazil and their tztab entry is:

# Brazil

BRA3BST
59 23 12-18 2 1997-1998 6 BRA3
59 23 19-25 2 1999-2001 6 BRA3
00 01 10-16 3 2002-2038 1 BRA3
59 23 02-08 10 1996-1997 6 BST2
59 23 09-15 10 1998-2000 6 BST2
00 01 10-16 10 2001-2038 1 BST2

The only differece between the two are the dates which the date would change.
Both sites have a TZ set as BRA3BST.

The time on the second server is correct, the time on the first server is one hour behind what it should be, ie 3 hours behind UTC rather than 2 hours behind.

Any ideas?

5 REPLIES 5
Mister_Z
Frequent Advisor

Re: Brazilian Timezone

Hi

the entry to /usr/lib/tztab needs to
be edited each year. Here is the entry for 2003/2004:

# Brazil Eastern Standard Time, Brazil Eastern Daylight Time
# horario verao
BEST3BEDT
0 0 15-21 2 2003 0 BEST3
0 0 18-24 10 2003 0 BEDT2
0 0 14-20 2 2004 0 BEST3

Add these lines to /usr/lib/tztab. Then edit /etc/TIMEZONE:

TZ=BEST3BEDT
export TZ

Reboot the system. Verify that the timezone and date were set correctly:

# echo $TZ
BEST3BEDT
# date

HTH,
I work for HP
Kent Ostby
Honored Contributor

Re: Brazilian Timezone

The top one is consistent with the TZTAB that was release in the 1998/1999 timeframe.

I havent seen the lower one before, however, I have seen a lot of documentation on the internet (via google) that indicates that the Brazil timezone shifts (from BRA to BST) change over short periods of time.

Given that the 2nd words, I would go with that.

Hope this helps,

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Elmar P. Kolkman
Honored Contributor

Re: Brazilian Timezone

The tztab file should be correct as long as the government leaves the week wherein the timezone is changed the same...
It is strange that in your case the output of date is different, since both should use BST2 by now (it is now after both the week from 10-16 and 19-25 october). So I think you need to look at the current timezone both servers report in the output of the date command.

As for the different DST changes: make sure both servers have the same patchlevel. I think one of them is somewhat behind. Patch at least this file, because you will run into problems again between the end of february and half march.
Every problem has at least one solution. Only some solutions are harder to find.
Marco Santerre
Honored Contributor

Re: Brazilian Timezone

I'm actually surprised to see that one of your server would be at a different time. Unfortunately, I wouldn't be able to tell you which one is right, though what I can tell you is this :

Both servers should have adjusted their time already. The first server should have adjusted its time between the 19th and the 25ht of October and the second server should have adjusted its time between the 10th and the 16th of October.

Since you said one of those server didn't have its time adjusted, I'm a bit surprised.
Cooperation is doing with a smile what you have to do anyhow.
Michael Steele_2
Honored Contributor

Re: Brazilian Timezone

Most painless process is to use 'set_parms'.

# set_parms timezone

This command will prompt you for everything including whether or not to use daylight savings time.
Support Fatherhood - Stop Family Law