format-dateTime does not support timezone

Bug #996548 reported by Dennis Knochenwefel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Medium
Paul J. Lucas

Bug 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")

description: updated
Changed in zorba:
assignee: Markos Zaharioudakis (markos-za) → Nicolae Brinza (nbrinza)
Changed in zorba:
assignee: Nicolae Brinza (nbrinza) → Paul J. Lucas (paul-lucas)
milestone: none → 3.0
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

This is no longer a bug.

Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
Chris Hillery (ceejatec)
Changed in zorba:
milestone: 3.0 → 2.9
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.