Apache OpenOffice (AOO) Bugzilla – Issue 83864
Custom property as date format won't be converted to field
Last modified: 2017-05-20 11:15:30 UTC
Open the attached document. You will notice an empty field in the second paragraph. This is the custom docproperty "Date completed". It will be correctly imported / exported, but not correctly shown as field in the document. MRU->MBA: please have a look if the resources allow a fix for OO 2.4. Otherwise we could target this to a later release.
Created attachment 49818 [details] doc containing mentioned property
Eike, we need some code to convert a com.sun.star.util.DateTime object to a string for a text field - with all bells and whistles. Do you know if such code exists somewhere?
target 3.0
Seems this went under my radar line.. Most bells and whistles are available when using the document's number formatter. You'd have to convert the css.util.DateTime values to a date serial offset based on the number formatter's NullDate value, e.g. convert css.util.DateTime to tools' class DateTime, substract the NullDate and use a NUMBERFORMAT_DATETIME format with the result. Less bells and whistles are available with LocaleDataWrapper::getDate() and LocaleDataWrapper::getTime(), a few whistles with LocaleDataWrapper::getLongDate()
move target to 3.2.
Reset assigne to the default "issues@openoffice.apache.org".