1832348 Members
2276 Online
110041 Solutions
New Discussion

Changing Time Zone

 
susee_sundar
Regular Advisor

Changing Time Zone

Hi.,

Here is the Output of the date command.,it is using the GMT timezone.

[root@nitappsun03 /]$ date
Tuesday November 28 09:19:47 GMT 2006

If I want to change the timezone to IST..,Permanently.,

Anybody help me to do the above task..

Regards
Suseendran, A
8 REPLIES 8
melvyn burnard
Honored Contributor

Re: Changing Time Zone

modify the file /etc/TIMEZONE with your required timezone.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Peter Godron
Honored Contributor

Re: Changing Time Zone

Hi,
set_parms timezone

Note: Reboot required to take permanent change.
Yogeeraj_1
Honored Contributor

Re: Changing Time Zone

hi,

set_parms timezone should help you change it accordingly.

With set_parms, in the first step you will have to choose between your location from the following list:
1) North America or Hawaii
2) Central America
3) South America
4) Europe
5) Africa
6) Asia
7) Australia, New Zealand
______________________________________________

rest is straight forward.

Note that you can choose "Unlisted time zone" to enter any value that is correct for you.


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Peter Godron
Honored Contributor

Re: Changing Time Zone

Hi,
Could you please update/close the thread by awarding points to helpful answers and summarising the solution for you.
This will help resolution of similar problems in the future.
Bill Hassell
Honored Contributor

Re: Changing Time Zone

It is very simple to change the timezone and you do not need to run set_parms. First, IST is not very informative. I am going to guess that this mean Irish Summer Time, correct? If so, there is no entry for Ireland in tztab so you need to create one. Here are some of the details on timezones:

TimeZone Acronyms:
==================
http://www.timeanddate.com/library/abbreviations/timezones/

Irish Summer Time:
==================
http://www.timeanddate.com/library/abbreviations/timezones/eu/ist.html

Now you need several pieces of information:
- Do you need timezone details prior to 2006?
- Do you know when 2006 and future years switch time? You will need the two rules, one for spring and one for fall. You can check this link to see if it correct:

http://www.timeanddate.com/worldclock/timezone.html?n=78

Once you can define the time change in general terms (like the month, the week, the time it changes), you can create the tztab entry.


Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: Changing Time Zone

IST is obviously India Standard Time based on susee's profile. :-)
BIll's URL for timezones didn't help.

And fortunately for India, the timezone is always:
TZ=IST-5:30
susee_sundar
Regular Advisor

Re: Changing Time Zone

Hi Team,

Sorry for the Late Update.
I was on leave yesterday and cant able to accesss ITRC.

Ya Dennis is right., The issue is somebody selectedn the wrong time zone while installation and I chnaged the time zone in /etc/profile file and Now Everything seems to be fine..


Thanks To all...
Bill Hassell
Honored Contributor

Re: Changing Time Zone

Actually, you need to change /etc/TIMEZONE, not /etc/profile. If you simply hardcode TZ=... in /etc/profile then all your networking times will be wrong as well as cron jobs and many other events that do not login. /etc/TIMEZONE is the source for TZ for virtually every process.


Bill Hassell, sysadmin