Solaris 2.1 Timezone

Solaris 2.1 Timezone

Post by Manfred Liebch » Sat, 28 Aug 1993 21:16:45



Problem in setting correct Timezone(Solaris 2.1)

I have a SPARC station 2 running under Solaris 2.1

According to my SunOS 5.1 How-To-Book-December 1992
Basic System Administration Tasks Page 99 i tried to set the
correct TIMEZONE(which is MET)
The /etc/TIMEZONE file contains:


#       Set timezone environment to default for the machine
TZ=MET-DST;export TZ
export TZ

After rebooting the system I get the old timezone which is wrong:

Fri Aug 27 13:54:42 GMT

Invokung the echo $TZ variable tells me
TZ: Undefined variable

So what is missing in doing the above steps ?

Greetings
Manfred
--

Manfred Liebchen, University of Cologne       RRR    RRR   ZZZZZ   K   K
Regional Computing Center                     R  R   R  R     Z    K  K
System Software and Networking Dept.          RRR    RRR     Z     KKK


Phone: +49 221 478 5573
Fax:   +49 221 478 5590                      
Snail-Mail: Robert-Koch-Str. 10, 5000 Koeln 41, Federal Republic of Germany

 
 
 

Solaris 2.1 Timezone

Post by Casper H.S. D » Sat, 28 Aug 1993 22:48:16



>Problem in setting correct Timezone(Solaris 2.1)
>I have a SPARC station 2 running under Solaris 2.1
>According to my SunOS 5.1 How-To-Book-December 1992
>Basic System Administration Tasks Page 99 i tried to set the
>correct TIMEZONE(which is MET)
>The /etc/TIMEZONE file contains:

>#       Set timezone environment to default for the machine
>TZ=MET-DST;export TZ
>export TZ

/etc/TIMEZONE isn't a shell script. It's a script containing
VAR=value lines.

If have MET as timezone, the correct setting is:

TZ=MET

(the system will automagically know about dst)

Remote shells will not pickup this timezone.
Having them get the correct behaviour is also possible:

        ``zic -l MET''

Some things did change between 2.1 and 2.2. In 2.2 /etc/TIMEZONE
is a link to /etc/default/init.

Casper