Hi,
I changed the date and time format in properties-local.xml in this way:
<properties xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oxf="http://www.orbeon.com/oxf/processors">
<property as="xs:string" name="oxf.xforms.format.output.date" value="if (. castable as xs:date) then format-date(xs:date(.), '[D01]-[M01]-[Y]') else ."/>
<property as="xs:string" name="oxf.xforms.format.input.date" value="[D01]-[M01]-[Y]"/>
<property as="xs:string" name="oxf.xforms.format.output.dateTime" value="if (. castable as xs:dateTime) then format-dateTime(xs:dateTime(.), '[D01]-[M01]-[Y] [H]:[m]') else ."/>
<property as="xs:string" name="oxf.xforms.format.input.dateTime" value="[D01]-[M01]-[Y] [H]:[m]"/>
<property as="xs:string" name="oxf.xforms.format.output.time" value="if (. castable as xs:time) then format-time(xs:time(.), '[H]:[m]' else ."/>
<property as="xs:string" name="oxf.xforms.format.input.time" value="[H]:[m]"/>
</properties>
Everything is almost great, but I want my time format (with an hour consists of one digit) to be like this: "08:00", not "8:00", which is now with above properties file.
I've tried to change the time properties like this:
<property as="xs:string" name="oxf.xforms.format.output.time" value="if (. castable as xs:time) then format-time(xs:time(.), '[H01]:[m]' else ."/>
<property as="xs:string" name="oxf.xforms.format.input.time" value="[H01]:[m]"/>
and also using the regex, but it doesn't work. The time format is ignored and Orbeon put its own format.
Do you have any ideas how to change the hour format?
Thanks in advance,
Chris
--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To post to this group, send email to
[hidden email].