Bug 74745 - Word custom document property with date type does not show as a date
Summary: Word custom document property with date type does not show as a date
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other Windows (All)
: medium normal
Assignee: Charu Tyagi
URL:
Whiteboard: target:4.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-09 12:33 UTC by Steve Bickle
Modified: 2014-07-10 14:30 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example Word document with custom date document property (33.43 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-02-09 12:33 UTC, Steve Bickle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Bickle 2014-02-09 12:33:26 UTC
Created attachment 93706 [details]
Example Word document with custom date document property

Problem description: 
A custom date field defined in a document using MS Word 2010 and saved as docx, when opened in Writer fails to show as a date.

Steps to reproduce:
1. In MS Word 2010 create a document
2. Create a custom document property set the type to date and set a value
3. Insert the custom date property on the document page
4. Save the document with as a docx close Word
5. Open the document in Writer

Current behavior: The date property displays as '41679'

Expected behavior: The date field should display as the date entered originally
Comment 1 Jorendc 2014-02-13 22:48:53 UTC
Reproducible, tested using Mac OSX 10.9 with LibreOffice Version: 4.2.1.1
Build ID: d7dbbd7842e6a58b0f521599204e827654e1fb8b and Version: 4.3.0.0.alpha0+
Build ID: a315454f349469923490e4116806ee19263849b8

Kind regards,
Joren
Comment 2 Cor Nouws 2014-02-23 23:21:53 UTC
already problem in 3.3.0.

Steve, can you pls try with .doc file too?
thanks a lot,
Cor
Comment 3 Commit Notification 2014-06-27 06:22:54 UTC
Charu Tyagi committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=9b04093e9ab67428276f27a5819d45675a8b3f9a

fdo#74745: (DOCX) Number formatting for custom document properties.



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2014-07-10 14:30:22 UTC
Charu Tyagi committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=6476f559070f0a7f2bb14f5f9a29d5bb10e62bb5

fdo#74745: Test Case for importing custom property of type date correctly in writer.



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.