Login  Register

Re: Time in 24 hours format

Posted by Markku Laine on Oct 26, 2009; 6:16am
URL: https://discuss.orbeon.com/Time-in-24-hours-format-tp276866p276877.html

Haba,


On 26.10.2009, at 2.28, Harri T. wrote:

> Hi! Can Orbeon be configured to display time in 24 hours format?  
> Maybe these values should be changed...
>
> fgrep time orbeon/WEB-INF/resources/config/properties-xforms.xml
>   <property as="xs:string"  
> name="oxf.xforms.format.output.*.*.time"  value="if (. castable as  
> xs:time) then format-time(xs:time(.), '[H01]:[m01]:[s01] [ZN]',  
> 'en', (), ()) else ."/>
>   <property as="xs:string"  
> name="oxf.xforms.format.output.fr.*.time" value="if (. castable as  
> xs:time) then format-time(xs:time(.), '[H01]:[m01]:[s01]', 'fr', (),  
> ()) else ."/>
>   <property as="xs:string"  
> name="oxf.xforms.format.output.time"      value="if (. castable as  
> xs:time) then format-time(xs:time(.), '[H01]:[m01]:[s01] [ZN]',  
> 'en', (), ()) else ."/>
>   <property as="xs:string"  
> name="oxf.xforms.format.input.time"       value="[h]:[m]:[s] [P]"/>
>
> ... but how?
Check out the documentation about formatting at:
http://www.orbeon.com/ops/doc/reference-xforms-extensions#d30e462
http://www.orbeon.com/ops/doc/reference-xforms-extensions#xforms-default-formatting
http://www.w3.org/TR/2005/WD-xslt20-20050915/#function-format-time

Regards


-Markku


--
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