Solved

Time change on Sun Solaris

Posted on 2008-10-25
5
1,135 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

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