- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Time Zone TZ New Zealand
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
Discussions
Discussions
Forums
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
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
тАО07-22-2007 04:28 PM
тАО07-22-2007 04:28 PM
What is the correct timezone for New Zealand:
TZ=NZST-12NZDT or NZST-12NZDT,M9.5.0/02:00,M4.1.0/03:00 ?
Need to be sure it is setted correctly before the new change date in September
Cheers
K
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2007 10:19 PM
тАО07-22-2007 10:19 PM
SolutionThe latter is only valid for years with that rule. Obviously, if there is a "new change", it isn't valid for making time queries for last year. Only by using tztab, can you create rules that are valid to the beginning of the epoch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2007 02:48 PM
тАО07-24-2007 02:48 PM
Re: Time Zone TZ New Zealand
So I will put on the file /etc/TIMEZONE
the TZ=NZST-12NZDT
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2007 03:30 PM
тАО07-24-2007 03:30 PM
Re: Time Zone TZ New Zealand
Changing /etc/TIMEZONE alone won't work correctly unless you also change /usr/lib/tztab.
My tztab has an entry for NZST-12NZDT but it doesn't have your recent rule change.
Do you know how to translate "NZST-12NZDT,M9.5.0/02:00,M4.1.0/03:00" to the tztab format?
You haven't assigned any points yet. Please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2007 10:25 AM
тАО07-29-2007 10:25 AM
Re: Time Zone TZ New Zealand
sorry for the delay.
Well it looks like complicated on HP system for the time zone. I didn;t realise that we do not change the value of TZ but have to modify the file /usr/lib/tztab instead.
On ibm aix for example you jsut modify the TZ variable to the good one...
So I was confused.
I have a question: If we install the latest patch of Timezone do this come with the new file version of /usr/lib/tztab or do I need to modify it ?
Thanks a lot in advance.
Cheers
Al.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2007 11:02 AM
тАО07-29-2007 11:02 AM
Re: Time Zone TZ New Zealand
> Well it looks like complicated on HP system for the time zone. I didn;t realise that we do not change the value of TZ but have to modify the file /usr/lib/tztab instead.
It isn't complicated on HP-UX at all. In fact, I find it simplier than Linux or AIX. You can set the TZ variable in your login '.profile' or set it system-wide in '/etc/TIMEZONE' (which in turn, will be sourced (read) by '/etc/profile' during login).
The *RULES* (definitions for a timezone) are what are held in '/usr/lib/tztab'. You can define your own if necessary simply by adding stanzas as documented in the manpages for 'tztab(4)'. Patches are usually released in plenty of time to accomodate world-wide TZ rule changes.
Moreoever, the HP-UX '/usr/lib/tztab' is an ASCII file that you edit directly. There is no "de-compilation" and "recompilation from a binary to an ASCII and from an ASCII to a binary format as in AIX.
> On ibm aix for example you jsut modify the TZ variable to the good one...So I was confused.
As you see from the above, this is really similar when you are choosing among established rules. In HP-UX, you modify either your '.profile' or '/etc/TIMEZONE'. In AIX, you modify '/etc/environment' (manually or with AIX's 'chtz').
> I have a question: If we install the latest patch of Timezone do this come with the new file version of /usr/lib/tztab or do I need to modify it ?
NO, the recent patches accomodate universal, standard definitions. To find the latest patch, search the ITRC Patch database with the keyword "tztab". For example, PHCO_36098 delivers the latest 'tztab' for 11.23.
When you modify a global setting or add a new ruleset, restart any long running processes like 'cron' and databases. THis allows them to re-cache the new rules. While a reboot is not strictly necessary it is the cleanest way to obtain consistent, system-wide process definition.
Please also see:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2007 11:12 AM
тАО07-29-2007 11:12 AM
Re: Time Zone TZ New Zealand
Thank you very much for your reply.
Well I can close this post now as I have all the information and it is more clear now.
Thanks again.
cheers
K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2007 11:13 AM
тАО07-29-2007 11:13 AM
Re: Time Zone TZ New Zealand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2007 05:55 PM
тАО07-29-2007 05:55 PM
Re: Time Zone TZ New Zealand
This is incorrect. You can do either (or both :-). While the setting of TZ is standard, it only works in the current year, as I said before, not previous. Using tztab(4) will work in all years.
>AIX for example you just modify the TZ variable
Yes, you can still do that, see TZ under environ(5).
>If we install the latest patch of Timezone do this come with the new file version of /usr/lib/tztab or do I need to modify it?
Looking at PHCO_36098 that JRF mentioned, I see no mention of New Zealand. When was this passed into law? In the US, we had almost 2.5 years to get ready.
>JRF: Patches are usually released in plenty of time to accommodate world-wide TZ rule changes.
I don't see one for New Zealand yet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2007 04:39 PM
тАО07-30-2007 04:39 PM
Re: Time Zone TZ New Zealand
Ok, I looked when I got back to work. There seems to be patches in progress. CR JAGag42510
The defect will be fixed by patches:
PHCO_36823: 11.11
PHCO_36824: 11.23
PHCO_36825: 11.31