Operating System - HP-UX
1830162 Members
2321 Online
109999 Solutions
New Discussion

which TIMEZONE can I set in /etc/TIMEZONE file

 
SOLVED
Go to solution
xiongye_2
Occasional Advisor

which TIMEZONE can I set in /etc/TIMEZONE file

I want to change my hp-ux box's timezone,but I do not know which timezone I can choose, how can I list all timezone so that I can choose one ? I do not want to reboot my hp-ux box,But can it take effect? Thanks !
xysco
3 REPLIES 3
Bill Hassell
Honored Contributor
Solution

Re: which TIMEZONE can I set in /etc/TIMEZONE file

The /etc/TIMEZONE simply set the variable TZ for each user login. No reboot is required. A list of defined timezones is in /usr/lib/tztab and the man page for tztab as well as the tztab file will tell how the file works. Every user that logs in can have their own timezone--just set TZ. HP-UX always keeps time in GMT or Zulu time. The TZ variable is used to translate time.

No reboot is needed although users will have to either logoff and log back on again or source the /etc/TIMEZONE file. Sourcing means using the dot command like this:

. /etc/TIMEZONE


Bill Hassell, sysadmin
Sridhar Bhaskarla
Honored Contributor

Re: which TIMEZONE can I set in /etc/TIMEZONE file

HI,

As already said, system doesn't care what timezone is set in /etc/TIMEZONE. /etc/TIMEZONE specifies the default timezone for all the users that login. It is less confusing if the time reflects the local time. For ex., we are in the midwest area in the US and we set our systems to CST6CDT. Check your timezone and configure accordingly.

In some environments, I have seen SAs configuring GMT as the default timezone. Individual users have to configure their .profile files to override the system's default time zone.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Marton Ferenc
Advisor

Re: which TIMEZONE can I set in /etc/TIMEZONE file

use this script>
/sbin/set_parms timezone

After recongiration you will be forced to restart!
J5000