2012-05-08 13:45:40 |
Dennis Knochenwefel |
description |
the timezone formatting in http://www.w3.org/TR/xpath-functions-30/#func-format-dateTime does not work.
example:
format-dateTime(current-dateTime(), "[D01][M01][Y0001][H01][m01][s01][z]")
expected:
08052012152215GMT+02:00
actual result:
08052012152215
The timezone is just not returned. A temporary workaround in XQuery is (for others running into this issue):
concat(
format-dateTime(
adjust-dateTime-to-timezone(current-dateTime(), xs:dayTimeDuration("PT2H")),
"[D01][M01][Y0001][H01][m01][s01]"),
"GMT+02:00") |
the timezone formatting in http://www.w3.org/TR/xpath-functions-30/#func-format-dateTime does not work.
example:
format-dateTime(current-dateTime(), "[D01][M01][Y0001][H01][m01][s01][z]")
expected:
08052012152215GMT+02:00
actual result:
08052012152215
The timezone is just not returned. A temporary workaround in XQuery is (for others running into this issue):
concat(
format-dateTime(
adjust-dateTime-to-timezone(current-dateTime(),
xs:dayTimeDuration("PT2H")),
"[D01][M01][Y0001][H01][m01][s01]"),
"GMT+02:00") |
|