How do I change timezone on my Solaris box ?

Changing timezone in Solaris 10 – x86:

1. Edited the /etc/TIMEZONE file, changed the value for TZ to the zone I want,

Eg.     TZ=US/Pacific        ### for PDT
        TZ=Asia/Calcutta     ### for IST

for full list, refer /usr/share/lib/zoneinfo

 2.  Run the following command in the prompt,

#rtc -z Asia/Calcutta                 ### replace "Asia/Calcutta" with your valid zonename
#rtc -c

 

3. reboot the system to effect the change and issue "date" command to verify

# date
Sat May 12 12:13:56 IST 2007

 

 

Advertisements

3 Responses to How do I change timezone on my Solaris box ?

  1. Also, tzselect(1M) helps to determine the time zone you’re in.

  2. Vidit says:

    What is I dont give the command
    rtc -z Asia/Calcutta ### replace "Asia/Calcutta" with your valid zonename
    #rtc -c
    and reboot the system after only changin the timezone file.

  3. Kim says:

    Hi Thanks for the usefull information ,
    It worked well
    can we do this without a reboot?
    Regards,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: