- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tztab updated but no change in time
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-03-2006 04:08 AM
10-03-2006 04:08 AM
tztab updated but no change in time
I am having problems with updating to daylight saving time on a machine. I have a script that runs on a cluster of machines to change the clock to daylight saving time. The script executed and updated the tztab file on all machines. The change took effect immediately on all machines except one. I do not want to reboot the machine, is there any way of making the change take effect?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2006 04:16 AM
10-03-2006 04:16 AM
Re: tztab updated but no change in time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2006 04:34 AM
10-03-2006 04:34 AM
Re: tztab updated but no change in time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2006 06:44 AM
10-03-2006 06:44 AM
Re: tztab updated but no change in time
TZ=EST5EDT date
TZ=PST8PDT date
Are you checking when the daylight saving takes effect by using Clay's Perl script?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2006 01:52 AM
10-04-2006 01:52 AM
Re: tztab updated but no change in time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2006 02:17 AM
10-04-2006 02:17 AM
Re: tztab updated but no change in time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2006 02:41 AM
10-04-2006 02:41 AM
Re: tztab updated but no change in time
The attached perl script for verifying daylight saving time uses the current TZ value plus the localtime() library to determine when daylight saving changes will occur -- essentially verifying the rules in tztab.
Now this means that a script is totally unnecessary to 'change' the clock on HP-UX. HP-UX keeps only one time: GMT. No daylight saving changes, no jumps in time, just GMT (ie, Zulu or UTC). The returned value from localtime() is simply translated according to the rules in tztab and these rules can be as arbitrary as the politicians that legislate the changes. And it's all automatic.
SO if you change the tztab entry for IST-2IDT, then *IF* the value of TZ is set to IST-2IDT, you would see the change. If there is a spelling error and grep $TZ /usr/lib/tztab produces no result on the problem machine, that is the problem. You can verify that TZ works on the library routines by using commands like this:
date
TZ=IST-2 date
TZ=ZZZ-2 date
TZ=BILLH-2 date
As you will see, the 3-letter location is just an arbitrary 3+ letters (man environ) and the offset (-2) is from GMT. But important to know: TZ is globally set as users login normally, that is, they run /etc/profile and ~HOME/.profile by sourcing the file /etc/TIMEZONE. If TZ is incorrect, look in that file, then /etc/profile and finally .profile. Also check the man page for tztab to see how the two time definitions (standard and daylight) are created.
The attached script will return the two changeover points for any timezone listed in /usr/lib/tztab (oh, there is no /lib in HP-UX -- it is just a symlink). Just run it with a temp value (commandline assignment) for TZ to test. You can check years in the past or in the future:
dst.pl
TZ=IST-2IDT dst.pl
TZ=IST-2IDT dat.pl -y 2007
TZ=GMT0BST dst.pl
TZ=EST5EDT dst.pl
NOTE: if the entry for $TZ is not found, the library routines default to EST5EDT rules without comment. (man environ) To see the dst.pl options: dst.pl -?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 11:37 AM
12-07-2006 11:37 AM
Re: tztab updated but no change in time
For java check www.hp.com/go/java. There is a link off the main page in red. Also, before month end there may be a tool available, similar to sun and IBM's that will change Java TZ files without having to install a whole new Java version.
Also check:
8606420800 - YK changes in librwtool and in lib++.a
fix
Applications linked shared can just apply the aC++ Runtime patch.
If linked archive, the application must be relinked.
For librwtool the following patches exist:
[PHSS_33941/PACHRDME/English] 11.00
[PHSS_33942/PACHRDME/English] 11.11
[PHSS_34041/PACHRDME/English] 11.23
lib++.a is only fixed with the A.03.70 release.
8606430960 - DCE and Daylight Saving changes in U.S.
Fix Release : - 11.31
11.11 : - December 2006
11.23 : - December 2006
cheers,
Nick