Time change on Sun Solaris

Posted on 2008-10-25
Last Modified: 2013-11-21
I need to change time from BST to GMT on our sun solaris web server - SUN V220. Could any one let me know how can I do that ?

I think Date command might be giver unpredictable results...

I tried zoneadm list -v command to check zone but it doesn't show anything..
Question by:prashndip
  • 3
  • 2

Accepted Solution

StrongBad_Rules earned 500 total points
ID: 22805019

You need to do the followings:

For a list of the TIMEZONE you can use have a look at:
ls /usr/share/lib/zoneinfo
1. edit /etc/TIMEZONE file, change the TZ variable (I've done this)
  you might need to change the LC_TIME var if required


3. use "date" command to change the time to the local time.

man date
to learn more details.

Author Comment

ID: 22805239
It is not possible to reboot this server for this change, any other solution ?

Author Comment

ID: 22805517
Hi StrongBad,

Could you please explain,
 1. edit /etc/TIMEZONE file, change the TZ variable (I've done this)
  you might need to change the LC_TIME var if required

I am doing it right now,


Author Comment

ID: 22805535
I gave command

edit /etc/timezone
then it showing below o/p
Then I gave TZ=GMT
but its showing that this is not editor command.

Please anyone help me on this ASAP......

Assisted Solution

StrongBad_Rules earned 500 total points
ID: 22818172
There are 2 steps that you need to follow:
1.  Did you look in the /usr/share/lib/zoneinfo to see if the appropriate file exists.  If not, you need to use the /usr/sbin/zic to create it.
2.  Then edit the /etc/TIMEZONE.  You have to reboot the system because all child processes of init use the original setting when it was started.


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now