Date format problem in template generated pdf

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

Date format problem in template generated pdf

rsa
Hi all,

I have a date format problem in generated from template pdf files. I need date like 27/11/2012 but it appers like [Language:en]2012-11-27

I configure Orbeon with this properties:

<property as="xs:string"  name="oxf.xforms.format.input.date"  value="[D]/[M]/[Y]" />
<property as="xs:string"  name="oxf.xforms.format.output.date" value="[D]/[M]/[Y]"/> 

But it don't work. After I try with this:
 
<property as="xs:string"  name="oxf.xforms.format.output.date" value="format-date(.,'[D01]/[M01]/[Y0001]')"/>
<property as="xs:string"  name="oxf.xforms.format.output.*.*.date" value="format-date(.,'[D01]/[M01]/[Y0001]')"/>
<property as="xs:string"  name="oxf.xforms.format.output.dateTime" value="fn:string(format-date(.,'[D01]/[M01]/[Y0001]'))"/>

Like http://orbeon-forms-ops-users.24843.n4.nabble.com/Problem-with-date-format-in-PDF-td4655545.html it works with non-template pdf but not with template.


I have tried also to modify resources.xml file (orbeon-form-runner/apps/fr/i18n) changing the date formats (and dateTime, just to check):

<formats>
    <date>[D]/[M]/[Y]</date>
    <time>[H01]:[m01]:[s01]</time>
    <dateTime>[D]/[M]/[Y]</dateTime>
</formats>

In dateTime case it changed form "November, 27 2012" to [Language:en]27/11/2012.
In date case no change still looks like [Language:en]2012-11-27.

Any idea?

Thanks!
rsa
Reply | Threaded
Open this post in threaded view
|

Re: Date format problem in template generated pdf

rsa
Hi again!

I have solved the format date problem including this property:

<property as="xs:string"  name="oxf.fr.resource.orbeon.*.*.print.formats.date" value="[D01]/[M01]/[Y0001]"/>

in properties-from-runner.xml (orbeon-resources-private.jar/config). Now dates show like [Language: en] DD/MM/YYYY.

Anyone know how can I remove the [Language: en] label?

Thanks!