format-message() and xs:date bug?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

format-message() and xs:date bug?

Ethan Gruber
Hi all,

I just noticed what I think is a bug:

I am using the date picker to set the xs:date of an attribute, @normal.  Let's say I set it to 2011-12-13.  I have an observer for this control to update an element with a human-readable string.

<xforms:action ev:event="xforms-value-changed" ev:observer="date-input">
  <xforms:setvalue ref="$binding" value="xxforms:format-message('{0,date,long}', (xs:date($binding/@normal)))"/>
</xforms:action>

I expect this string to be December 13, 2011.  However, the string is always one day behind (Dec. 12).  If I use the date picker to select 2011-12-01, format message resolves the string to November 30, 2011.

Ethan


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws