Solved

Time change on Sun Solaris

Posted on 2008-10-25
5
1,133 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
Comment Utility
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
Comment Utility
It is not possible to reboot this server for this change, any other solution ?
0
 

Author Comment

by:prashndip
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
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.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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 …

743 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

15 Experts available now in Live!

Get 1:1 Help Now