SUMMARY:Changing Time Zone

From: Solaris Admin <>
Date: Thu Jul 05 2001 - 10:23:32 EDT
Special thanks for all who replied 

Valeriy Glinskiy
Jay Lessert
John Michaels
Hendrik Visage

Pl find the summary




When your box says $TZ is "GMT+5", here's what it means:

1)  There is a line in /etc/default/init that says:


2)  There is a *file* in /usr/share/lib/zoneinfo named "GMT+5":

    % ls -l /usr/share/lib/zoneinfo/GMT+5
    -rw-r--r--  2 root   bin   58 Jan  8  2000 /usr/share/lib/zoneinfo/GMT+5

    This file was created by:

    # cd /usr/share/lib/zoneinfo
    # zic src/etcetera
    # zic src/backward

    The zoneinfo source files (in src/) are ascii text, format defined
    by the zic(1M) man page.

Now, forgive my boldness, but I'm guessing you're in India (because
that's the only place I know with a +5.5 hour time zone).  Probably
what you *really* want is to change your /etc/default/init entry


...and reboot.

This zone has an offset of +5.5 hours from UTC, and reports as IST.

NOTE: Depending on who installed your machines, you may not have a
/usr/share/lib/zoneinfo/Asia/Calcutta file.  Not to worry.  Check
first, and if the file is not there:

    # cd /usr/share/lib/zoneinfo
    # zic src/asia

This is completely safe.  Once the zone files are there, you can play
with them.  I'm on the west coast of the US.

    % echo $TZ

    % date
    Wed Jul  4 09:58:30 PDT 2001
    % TZ=Asia/Calcutta
    % export TZ
    % date
    Wed Jul  4 22:28:36 IST 2001
    % TZ=Australia/Tasmania
    % date
    Thu Jul  5 03:00:08 EST 2001
Once you're satisfied, make your change to /etc/default/init and reboot

On Solaris 7 there should be a file called init in /etc/default that allows
you to set your timezone.

Hope that helps.



 first check if there isn't a timezone definition for your
country in /usr/share/lib/zoneinfo

If there is (you might need to do a "zic continent" to create the
continent's country's timezones), then add the equivalent to the following in
/etc/TIMEZONE: "TZ=Continent/Capital" or "TZ=Continent/Country" 
A reboot might then be needed, but I've heard that you could
just send a SIGHUP to init to "fix" it.

Get 250 color business cards for FREE!
Received on Thu Jul 5 15:23:32 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:24:58 EDT