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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

809 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