- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- $TZ parameter change in HP-UX
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
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
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
12-03-2014 08:09 AM - last edited on 12-03-2014 09:34 PM by Maiko-I
12-03-2014 08:09 AM - last edited on 12-03-2014 09:34 PM by Maiko-I
$TZ parameter change in HP-UX
Hello,
I have an issue where the JRE is picking up incorrect timezone string id of GMT+04:00 format from the OS instead of something like "Asia/Dubai". The OS version being used is:
HP-UX B.11.31 U ia64 2972939761 unlimited-user license
(I have attached output of 'uname -all' and 'swlist -l bundle' for detailed OS info
One of things we noticed was that the $TZ variable was set to something which was not set to a valid value form the tztab or the tzmappings file, so we changed it to something which exists in those 2 files, but JRE is still not picking up the change.
Do we have to reboot the nodes for JRE to pick up the changes?
Please advise,
Thanks!
P.S. This thread has been moved from HP-UX > System Administration to HP-UX > languages. - Hp forum Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2014 10:15 AM - edited 12-03-2014 10:16 AM
12-03-2014 10:15 AM - edited 12-03-2014 10:16 AM
Re: $TZ parameter change in HP-UX
>was that the $TZ variable was set to something which was not set to a valid value
What is the value of TZ?
>something like "Asia/Dubai".
The OS knows nothing about these newfangled Java/Linux timezones. It's all done by java.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2014 02:49 PM
12-03-2014 02:49 PM
Re: $TZ parameter change in HP-UX
Currently, the $TZ is set to the following:
root:cert@amcnpap1:/> echo $TZ
WST-4WSTDST
But Java is recognizing GMT+04:00
Please advise,
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2014 12:51 PM
12-04-2014 12:51 PM
Re: $TZ parameter change in HP-UX
Perhaps you need to use 'tzupdater'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2014 02:44 AM
12-05-2014 02:44 AM
Re: $TZ parameter change in HP-UX
>WST-4WSTDST But Java is recognizing GMT+04:00
This is correct if Java has no idea what "WST" means or the whole string.
tztab(4) has a comment that says:
# European Russia (samara) Time, European Russia (samara) Daylight Savings Time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2014 06:20 AM
12-05-2014 06:20 AM
Re: $TZ parameter change in HP-UX
Hi,
Is root running Java or is it being run from another user?