getting correct time zone in HPI
I have requirement that i need to get the timezone of the system in java class and instantiate this value in configuration file. Subsequently i use TZ value stored in configuration fiile, in my scripting.
For this i am using TimeZone.getDefault().getID() API to get the TimeZone. It returns America/Los_Angeles in one of the HPI system. But AIX 5.3
and HPI does not support long TZ string.
How can i convert TZ like America/Los_Angeles to PST8PDT. or is there any way to get the timezone object which is supported in all the platforms.
Thanks in Advance.