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? -Harri -- 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 |
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? 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 |
On 26.10.2009, at 8.16, Markku Laine wrote:
The format used below prints out a date as follows: Friday January 2, 2009 17:05:54 <xforms:output ref="@created" xxforms:format="format-dateTime( xs:dateTime( . ), '[FNn] [MNn] [D], [Y] [H01]:[m01]:[s01]', 'en', (), () )" /> -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 |
In reply to this post by Markku Laine
On 26.10.2009 08:16 Markku Laine wrote:
> 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 According to this documentation the default time format for English use 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 ."/> should display hours in 24 h format, but currently my form builder built forms have them in 12 h format. -Harri -- 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 |
Administrator
|
Harri,
On Thu, Oct 29, 2009 at 2:27 PM, Harri T. <[hidden email]> wrote: > According to this documentation the default time format for English use > > 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 ."/> > > should display hours in 24 h format, but currently my form builder built > forms have them in 12 h format. Alex -- Orbeon Forms - Web forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
On 31.10.2009 06:25 Alessandro Vernet wrote:
> > Where specifically in Form Builder would you like to use the 24h format? Hi Alessandro I'd like to use 24 h format for the fields of types xforms:date and xforms:dateTime when the form is opened in the form runner. See the attached sample form and the screenshot. Time format should be "15:00:00", not "3:00:00 p.m.". The date format should be "24.11.2009", not "11/24/2009". Harri -- 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 |
Harri,
Simply set this property in your properties-local.xml: <property as="xs:string" name="oxf.xforms.format.input.time" value="[H]:[m]:[s]"/> -Erik On Tue, Nov 24, 2009 at 11:07 AM, Harri T. <[hidden email]> wrote: > On 31.10.2009 06:25 Alessandro Vernet wrote: >> >> Where specifically in Form Builder would you like to use the 24h format? > > Hi Alessandro > > I'd like to use 24 h format for the fields of types xforms:date and > xforms:dateTime when the form is opened in the form runner. > > See the attached sample form and the screenshot. Time format should be > "15:00:00", not "3:00:00 p.m.". The date format should be "24.11.2009", not > "11/24/2009". > > Harri > > > -- > 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 > > -- 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 |
All,
We are running Orbeon with separate deployment of Java Application. We have a use case where we need to convert the date and time display from GMT to EST and then again save it as GMT from EST. I Would like to know the best solution to handle this use case. Thanks Karun -- 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 |
Karun,
I think the adjust-time-to-timezone() XPath function should help: http://www.w3.org/TR/xpath-functions/#func-adjust-time-to-timezone -Erik On Tue, Dec 1, 2009 at 7:17 AM, Ganaphathy, Karunamoorthy <[hidden email]> wrote: > All, > > We are running Orbeon with separate deployment of Java Application. We have a use case where we need to convert the date and time display from GMT to EST and then again save it as GMT from EST. > > I Would like to know the best solution to handle this use case. > > Thanks > > Karun > > > -- > 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 > > -- 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 |
Free forum by Nabble | Edit this page |