Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Custom property as date format won't be converted to field | ||||||
---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | michael.ruess | ||||
Component: | open-import | Assignee: | AOO issues mailing list <issues> | ||||
Status: | CONFIRMED --- | QA Contact: | |||||
Severity: | Trivial | ||||||
Priority: | P3 | CC: | issues, ooo | ||||
Version: | current | ||||||
Target Milestone: | --- | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
michael.ruess
2007-11-22 13:08:15 UTC
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". |