1843947 Members
2210 Online
110226 Solutions
New Discussion

Re: TimeZone

 
SOLVED
Go to solution
C.I.S
Frequent Advisor

TimeZone

How can I set my timezone if it's not listed in /usr/lib/tztab? Knowing that my location is +2H GMT.
Does the time zone abbreviation matter in this case, i.e abc+2 is the same as abc2 or xyz+2?
8 REPLIES 8
Roger Baptiste
Honored Contributor

Re: TimeZone

>

If your time is always 2 hours ahead of
GMT, then you do not need an entry in tztab.
Just modify /etc/TIMEZONE to read
TZ=GMT+2; export TZ



The abbreviation is an equation to calculate
the timezone. So, in that respect it matters.

HTH
raj
Take it easy.
James Beamish-White
Trusted Contributor

Re: TimeZone

Why don't you find the closest timezone to yours and set it to that?

Regards,
James
GARDENOFEDEN> create light
C.I.S
Frequent Advisor

Re: TimeZone

I mean in my case abc+2 and xyz+2 differ? or the +2 that counts only?
John Bolene
Honored Contributor

Re: TimeZone

for +2 TZ, you would be in Central Europe

use CET-2CDT
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
G. Vrijhoeven
Honored Contributor

Re: TimeZone

Hi,

check out man tztab, put the time zone you like te use in /etc/TIMEZONE and export it:

cat /etc/TIMEZONE
TZ=MET-1METDST
export TZ

Good luck,

Gidoen
John Bolene
Honored Contributor

Re: TimeZone

Got the wrong one also

for +2 TZ, you would be in Eastern Europe

use EET-2EEST
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
C.I.S
Frequent Advisor

Re: TimeZone

tz=GMT+2 gives me a 2hours before GMT...what's wrong?
TZ=GMT-2 gives me the rite time
James R. Ferguson
Acclaimed Contributor
Solution

Re: TimeZone

Hi:

Using a "+" offset means you are west of the Prime Meridian. Using a "-" offset means you are east. You should, ideallly, choose a value in /usr/lib/tztab that matches your home. You can test your TZ declaration by simply doing this:

# TZ=XXX+5 date
...or...
# TZ=XXX-5 date

If you use something like XXX5 you will see that this is the same as specifying the format as XXX+5. As you can also see, there is no magic in naming the timezone. Here, "XXX" would be its name -- not too informative, though.

Regards!

...JRF...