- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Change Timezone
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2002 06:06 AM
04-10-2002 06:06 AM
Change Timezone
I work in time domain and I have to change timezone in HP servers. The only solution I found is to change TZ in "/etc/TIMEZONE" file and restart the server.
Does anyone of you know another solution less hard or is it the only one.
Thank you for answer.
F.D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2002 06:10 AM
04-10-2002 06:10 AM
Re: Change Timezone
try
set_parms date
bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2002 06:11 AM
04-10-2002 06:11 AM
Re: Change Timezone
You can use the command
set_parms timezone for a server level change.
For users:
all local => set TZ in the /etc/profile file
individual => set TZ in the users's home dir .profile or .dtprofile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2002 06:12 AM
04-10-2002 06:12 AM
Re: Change Timezone
I am afraid you will have to reboot the server in order to all the processe to use the new timezone (cron, database....)
You can use :
# set_parms timezone
Regards,
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2002 06:37 AM
04-10-2002 06:37 AM
Re: Change Timezone
Actually, all you need to do is:
TZ=CST6CDT (or whatever desired TZ)
export TZ
The file you refer to only sets the system-wide default TZ but remember that TZ is simply a variable for a given process. All UNIX boxes in the known universe simply count seconds since Jan 1, 1970; TZ only determines how time is DISPLAYED. It is perfectly okay for multiple processes to have different TZ setttings.
Man environ for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2002 06:44 AM
04-10-2002 06:44 AM
Re: Change Timezone
You can set the time zone and export it:
/etc/TIMEZONE:
TZ=EST5EDT
export TZ
Check it with env command. You can also use 'set_parms' too.
Read this document - how hp-ux determines the timezone:
http://us-support3.external.hp.com/cki/bin/doc.pl/sid=61b2c95814366669fd/screen=ckiDisplayDocument?docId=200000055184936
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2002 08:05 AM
04-10-2002 08:05 AM
Re: Change Timezone
What shiju says it right. For you i would suggest that since you are new to this, use the command
set_parms timezone.
You can also do this using SAM which would be very very helpful to you.
PS : Dont' forget to award points for people who try to help you. I have also started doing this for people who help me.
Regards,
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2002 08:10 AM
04-10-2002 08:10 AM
Re: Change Timezone
sometimes the hands gone more quickly than the minds.
all suggests after mine is correct set_parms timezone
sorry again