Empty dates & imports.

Arnaud Thimel thimel at codelutin.com
Wed Jun 6 19:02:54 CEST 2007


Hi all,

I have a problem with imports.

I have some objects that I need to export that contains empty dates.
The property "emptyIsToday" is set to "0" and the field value is empty.

Exported file is like :

Field declaration :

[...]
<dateDetection>
<name>dateDetection</name>
<prettyName>Date de détection</prettyName>
<unmodifiable>0</unmodifiable>
<size>10</size>
<dateFormat>dd/MM/yyyy</dateFormat>
<emptyIsToday>0</emptyIsToday>
<customDisplay></customDisplay>
<validationRegExp></validationRegExp>
<tooltip>format (jj/mm/aaaa)</tooltip>
<number>4</number>
<validationMessage></validationMessage>
<classType>com.xpn.xwiki.objects.classes.DateClass</classType>
</dateDetection>
[...]

Value :

[...]
<property>
<dateDetection></dateDetection>
</property>
[...]


So all seems normal in exported file.

Then when I do my import and go to see the object, it is valued with the
current's date :
        Date de détection: 06/06/2007

Any idea or suggestion ?

Regards,

-- 
Arnaud Thimel
Société Code Lutin - http://www.codelutin.com





More information about the devs mailing list