Issue 83864 - Custom property as date format won't be converted to field
Summary: Custom property as date format won't be converted to field
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: current
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-22 13:08 UTC by michael.ruess
Modified: 2017-05-20 11:15 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
doc containing mentioned property (23.50 KB, application/msword)
2007-11-22 13:09 UTC, michael.ruess
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description michael.ruess 2007-11-22 13:08:15 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.
Comment 1 michael.ruess 2007-11-22 13:09:35 UTC
Created attachment 49818 [details]
doc containing mentioned property
Comment 2 Mathias_Bauer 2007-12-15 13:21:08 UTC
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?
Comment 3 Mathias_Bauer 2008-02-04 15:30:03 UTC
target 3.0
Comment 4 ooo 2008-07-10 14:03:39 UTC
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()
Comment 5 Martin Hollmichel 2008-12-10 11:17:43 UTC
move target to 3.2.
Comment 6 Marcus 2017-05-20 11:15:30 UTC
Reset assigne to the default "issues@openoffice.apache.org".