Hi,



In CQ I run


let $tzZ := fn:adjust-dateTime-to-timezone(fn:current- dateTime(),xs:dayTimeDuration('PT0S'))
return (
    fn:current-dateTime(),
    $tzZ,
    concat('hours-from-dateTime: ',hours-from-dateTime($tzZ)),
    concat('timezone-from-dateTime: ',timezone-from-dateTime($tzZ)),
    xdmp:strftime("%Y-%m-%dT%H:%M:%S%Z",$tzZ)
)


and it (ML 4.1-4) gives


2010-04-21T15:59:59.337568-04:00
2010-04-21T19:59:59.337568Z
hours-from-dateTime: 19
timezone-from-dateTime: PT0S
2010-04-21T15:59:59EDT


I don't understand why strftime seems to revert tzZ back to the
local time zone after what seems a successful conversion to
UTC.  Is there something I did wrong?  Should I just take the
dT apart and put it back together again via string functions?


Thanks for any clue,

Chris Hamlin

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to