Marklogic 7 Problem with fn: format-dateTime
In MarkLogic 7.0-4, the function fn:format-dateTime
seems to return incorrect values ββwhen fractional seconds start at 0.
The following query returns different results in MarkLogic 5.0-5 and 7.0-4
let $ currentUTCTime: = xs: dateTime ("2014-10-30T15: 23: 20.092563Z")
return n: Format-DateTime ($ currentUTCTime, "[Y0001] - [M01] - [D01] T [H01] :. [M01]: [S01] [F001]")
The correct result is 2014-10-30T15: 23: 20.092
MarkLogic 5.0-5 result - 2014-10-30T15: 23: 20.092
MarkLogic 7.0 - 4 result - 2014-10-30T15: 23: 20.930
This seems to be a bug. Does anyone know about this?
+3
source to share
1 answer