Solved

Time change on Sun Solaris

Posted on 2008-10-25
5
1,143 Views
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..
0
Comment
Question by:prashndip
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
StrongBad_Rules earned 500 total points
ID: 22805019
http://www.experts-exchange.com/Operating_Systems/Solaris/Q_21325413.html

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

2.reboot

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

man date
to learn more details.
0
 

Author Comment

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

Author Comment

by:prashndip
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,

0
 

Author Comment

by:prashndip
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......
0
 
LVL 8

Assisted Solution

by:StrongBad_Rules
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.

0

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