March 29, 2006

heads up: timezone CFC updated

well, the icu4j versions were anyway. dan switzer seems to have turned up a problem with the icu4j version that i also encountered over the weekend. the icu4j version extended the core java version by simply substituting com.ibm.icu.util.TimeZone for the core java TimeZone class. unfortunately if you didn't explicitly pass in a timezone (tz), you were supposed to get the server's tz. however icu4j differs in the way this is done:
core java:
default="#tzObj.getDefault().ID#"
icu4j:
default="#variables.timeZone.getDefault().getDisplayName()#"


the tz that the core java default method was returning wasn't understood by icu4j but it didn't throw an error but silently returned the UTC tz instead. whoops.

you can pick up the new version here.

0 Comments:

Post a Comment

<< Home