1828673 Members
2362 Online
109984 Solutions
New Discussion

TIMEZONE

 
SOLVED
Go to solution
vytas
Advisor

TIMEZONE

Hi, can I change TIMEZONE on HP-UX 11.00 and HP-UX 10.00
without restarting server.
Thanks
Vytas Gadliauskas
5 REPLIES 5
Emiel van Grinsven
Valued Contributor

Re: TIMEZONE

Deepak Extross
Honored Contributor

Re: TIMEZONE

errm, each user can change his/her timezone at will simply by doing a
"export TZ=".

Deepak Extross
Honored Contributor

Re: TIMEZONE

There was a thread recently where a machine had users logged in from different parts of the world, each using their own $TZ, which they were setting in their .profile.

You could also set the Timezone for the users in the /etc/profile.
Steven Gillard_2
Honored Contributor
Solution

Re: TIMEZONE

You don't *have* to reboot, simply changing the TZ environment variable (by editing /etc/TIMEZONE) will work for all new sessions.

However, any applications running that are timezone sensitive will need to be restarted to pick up the new TZ setting. This is not normally a huge issue as most apps use UTC instead of the local time when performing time calculations. There may be some side effects - for example your log files may have the wrong timestamps in them because the application is still running with the old TZ setting.

Generally its cleaner to reboot.

Regards,
Steve
Trond Haugen
Honored Contributor

Re: TIMEZONE

The short answer is yes.
All you have to do is change the TZ shell variable. But that will only change the timezone for that shell ant it's child processes.
You should change it for the system with 'set_parms timezone'. But as all running processes wil still have the "old" timezone it's 2cleaner" to reboot.
See also recent postings:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xecaeba808b46d611abda0090277a778c,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x8b928cc5e03fd6118fff0090279cd0f9,00.html

Regards,
Tron
Regards,
Trond Haugen
LinkedIn