Hi all,
I switched from 6.8 to 7.5 and I'm generating an error I didn't get in 6.8 when using Java Bindings There error is :[FORG0006] Invalid call of Java function: TimeZone.inDaylightTime(java(), java()) It appears that its problem is using the output of one java function in another function.
Is there some new way to do this in 7.5? Thanks Randy
The code is:
declare namespace tz = "java:java.util.TimeZone"; declare namespace dt = "java:java.util.Date"; declare namespace df = "java:java.text.DateFormat"; declare namespace cal = "java:java.util.Calendar"; declare namespace sdf = "java:java.text.SimpleDateFormat";
let $odate := xs:long(1345665817) let $edate := xs:long($odate)*1000 let $fdate := dt:new(xs:long($edate)) let $tmz := tz:getDefault() let $tbool := tz:inDaylightTime($tmz, $fdate)
return ( <results> <jdate>{$fdate}</jdate> <Timezone>{$tmz}</Timezone> <Daylight>{$tbool}</Daylight> </results> )