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
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
10-09-2001 03:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 04:01 AM
10-09-2001 04:01 AM
Re: timezone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 04:13 AM
10-09-2001 04:13 AM
Solution-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 04:14 AM
10-09-2001 04:14 AM
Re: timezone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 04:19 AM
10-09-2001 04:19 AM
Re: timezone
Bill is correct, you can use 'sbin/set_parms timezone' to establish the timezone.
/etc/TIMEZONE holds your global setting and this file is sourced by /etc/profile during login.
If you merely want to temporarily change your TZ variable for testing, you could set it for one command like this:
# date # ...my current TZ
# TZ=MSG7MDT date #...Mountain time for this one
# date #...my current TZ again (still)
For a list of defined timezones, see: /usr/lib/tztab
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 05:06 AM
10-09-2001 05:06 AM
Re: timezone
tnx everyone.
/etc/TIMEZONE.. and no need for reboot..
unfortunally the time changed aswell..
simple to fix anyway =)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 05:33 AM
10-09-2001 05:33 AM
Re: timezone
HP-UX is unique in that $TZ may be specified on a login-by-login basis such that users all over the world can login to the system, set their $TZ value to match their local timezone and all date operations such as ls -l will look correct. The set_parms timezone and /etc/TIMEZONE file are used to establish the machine's local time and provide a default TZ for logins. But as demonstrated in previous answers, just changing TZ to a different value will change the decoding of internal time.
This also includes setting the date from root. And changing the date or time is a fairly disruptive action for any server, so much so that sysadmins will often 'wrapper' the date command to not allow changing the date/time by root without a lot of warnings. It is a good idea to change date/time in single user mode then reboot. Or better yet, use NTP (part of 10.x and higher) to point to a firewall router that has NTP enabled.
Note for Daylight Savings:
--------------------------
You don't need to do anything. Zulu time has no Daylight Savings concept but the decoder file /usr/lib/tztab will take care of the time change by representing the time according to the rules in tztab. So at the fall-back hour, $TZ will cause time to appear to move backwards but in reality, only the display of the time changed. cron jobs will still run correctly although the rules are complex (man cron).
Bill Hassell, sysadmin