Time format

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Time format

mbojja
Hi Alex - I would like the time format to be like [h]:[m] (eg 2:39 pm ). I have changed the property as below and the time control still shows the seconds (eg 2:39:00 pm ). Please let me know what needs to be changed

<property
as="xs:string"
name="oxf.xforms.format.input.time"
value="[h]:[m]: [P,2-2]"/>


Thanks

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/47da7284-0694-4ede-9aed-d4c0f55df7d9o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Time format

Alessandro  Vernet
Administrator
Hi Manish,

This is just because the `[h]:[m] [P,2-2]` format wasn't supported. Per the
documentation, only the following 4 formats were supported:

    - [h]:[m]:[s] [P]
    - [h]:[m]:[s] [P,2-2]
    - [H]:[m]:[s]
    - [H]:[m]

So if including the am/pm or a.m./p.m., you also had to include the seconds.
I don't think that there was any good reason for this (!), so we added the
support for am/pm or a.m./p.m. without seconds. For reference, this is
tracked by issue #4661, and it will be in Orbeon Forms 2020.1.

https://github.com/orbeon/orbeon-forms/issues/4661

‑Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1599179506347-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet