faqts : Computers : Management Systems : TCSI : Catalant : General

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 5 people (40%) answered Yes
Recently 2 of 5 people (40%) answered Yes

Entry

Catalant PM UI on Unix uses incorrect TZ(timezone)
Catalant PM UI on Unix uses incorrect TZ(timezone)

Oct 14th, 2004 07:30
Kalu Ral, Engineer TCSI, http://www.consolidate-loan-student.com , http://www.0-apr-credit-card.biz , http://www.clearpathoverseas.com


Background
----------
After installing Catalant on a standalone server, I noticed that the 
PM 
UI was picking up the incorrect timezone, and hence, was plotting the 
PM 
graphs with a -1hr offset. 
Cause
-----
It appears the Java Virtual Machine on Sol28 is unable to determine 
the 
correct timezone settings on the SUN server. 
From a coding perspective
        //Java code in PerformancePanel
        Date currentTime = new java.util.Date() 
was returning the wrong value since it could not adjust for the 
appropriate timezone.
Fix:
----
1. Make sure the TZ environment is set properly in your unix shell. 
   E.g., in ".cshrc", add
     setenv TZ "US/Pacific"
   where "US/Pacific" is the timezone for the host machine.
   If you use other unix shells, make sure the envvar is exported.
2. Edit $DeployRoot/config/env/sol28 and modify the following line:
     PASS_THRU = DeployRoot ARCH USER HOSTNAME HOME
   to
     PASS_THRU = DeployRoot ARCH USER HOSTNAME HOME TZ
   Basically, add "TZ" to the end of the line.
3. Make sure /etc/timezone is set appropriately.
That's it. The UI appears to work fine now.