HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Changing timezones on the fly
Operating System - HP-UX
1825801
Members
2878
Online
109687
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
02-01-2006 07:23 AM
02-01-2006 07:23 AM
Can I change the time of a system from CST to EST? I could change the time to match the correct eastern time, but I also need to change it to eastern standard time. If so, will this require a reboot?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 07:28 AM
02-01-2006 07:28 AM
Solution
At one level your question has no meaning because a system could literally have used logged in all over the world -- each with a unique TZ value. Changing the value in /etc/TIMEZONE will affect any processes that use the default TZ value that are started after the change but will not affect those that are currently running. If you want all the daemons (e.g. cron) to recognize the change then you really should reboot. Obvoiusly, you could stop and restart the daemons (again, e.g. cron) but it would be very easy to miss one.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 07:47 AM
02-01-2006 07:47 AM
Re: Changing timezones on the fly
Hi
A timezone change requires a reboot,but the indivijual user can set the TZ on the profile but that will be in effect only for that particular user.
Rgds
HGN
A timezone change requires a reboot,but the indivijual user can set the TZ on the profile but that will be in effect only for that particular user.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 07:56 AM
02-01-2006 07:56 AM
Re: Changing timezones on the fly
Hi Joe:
You have several options.
If you want to change the timezone for the duration of one command, do:
# TZ=EST date
That is, set the TZ value; type a blank (space) and your command or script.
If you want to change it for a user, you can set it in the user's profile.
If you want to change it system-side, change it in ' /etc/TIMEZONE. This file is sourced by '/etc/profile' so new logins would see the change.
If you change the timezone system-wide, you should at least restart 'cron' (/sbin/init.d/cron stop|start).
If you want a permanent, consistent change, modify '/etc/TIMEZONE' and reboot. In that way all processes will inherit a consistent view of local time.
Regards!
...JRF...
You have several options.
If you want to change the timezone for the duration of one command, do:
# TZ=EST date
That is, set the TZ value; type a blank (space) and your command or script.
If you want to change it for a user, you can set it in the user's profile.
If you want to change it system-side, change it in ' /etc/TIMEZONE. This file is sourced by '/etc/profile' so new logins would see the change.
If you change the timezone system-wide, you should at least restart 'cron' (/sbin/init.d/cron stop|start).
If you want a permanent, consistent change, modify '/etc/TIMEZONE' and reboot. In that way all processes will inherit a consistent view of local time.
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP