Bug 63535 - FILEOPEN: Custom properties: FORMATTING: Custom CreateDate loaded in .DOC as General instead of Date
Summary: FILEOPEN: Custom properties: FORMATTING: Custom CreateDate loaded in .DOC as ...
Status: RESOLVED DUPLICATE of bug 147861
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: Other All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: filter:doc, filter:docx
Depends on:
Blocks: DOC
  Show dependency treegraph
 
Reported: 2013-04-15 03:36 UTC by Ruslan Fatakhov
Modified: 2023-05-25 00:04 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Test file (15.50 KB, application/msword)
2013-04-15 03:36 UTC, Ruslan Fatakhov
Details
Test.pdf: created by Word 2003 - showing the date as a date format (5.65 KB, application/pdf)
2022-03-08 08:10 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruslan Fatakhov 2013-04-15 03:36:24 UTC
Created attachment 77971 [details]
Test file

Problem description: 
When i add custom property name 'CREATEDATE' with type date, and insert it in document, i can see right it. But if i open one next time i see that my custom property type changed on type 'DateTime'
Steps to reproduce:
1. Open file 'Test.doc'
2. Add custom property 'CreateDate' with date type
3. Insert custom field
4. Save the file
5. Open the file

Current behavior:
i see 41136 insted date

Expected behavior:
right format date mm/dd/yyyy
              
Operating System: Ubuntu
Version: 4.0.2.2 release
Comment 1 Marc Kaulisch 2013-04-16 20:25:56 UTC
I can confirm this behaviour with the same version 4.0.2.2 under Windows 8.
This only occurs with .doc and not with .odt

With .docx there is another problem: the user-defined fields are lost.
Comment 2 Urmas 2013-04-17 13:03:22 UTC
To be precise, the VT_DATE document properties have no default format. In normal software, they are formatted as short date by default.
Comment 3 Marc Kaulisch 2014-06-27 11:12:22 UTC
still the date type of the custom property name is not kept when opened in LO 4.3.0.1 again
bug remains for .doc
Comment 4 Marc Kaulisch 2014-11-24 09:15:29 UTC
still present in 4.4.0.0.beta1
it is only a problem with doc and docx
no problems when using odt
Comment 5 Timur 2015-08-31 17:17:52 UTC
Reproduced with 5.1+.
LO 3.3.0 could save the existing format properly, but it couldn't insert it, because Inset-Fields-DocInformation-Custom are empty.
After that, Custom fields are there, but with this bug.
I change the title because it's just CreateDate problem, other fields are saved.
Comment 6 Timur 2015-11-30 11:40:11 UTC
Revisiting this:
- it's not that CreateDate is not saved in .DOC, rather it's saved as General type field instead of Date, and it can be converted via editing field (but it won't be saved)
- why would you use custom CreateDate field when there's normal Insert-Fields-DocInformation-Created-Date field that works?
- CreateDate field from DOC created in Word is retained in DOC by LO.

So, I suggest this be closed.
Comment 7 royerjy 2016-07-20 06:50:19 UTC
After a question on French list, it appears in all LO versions, included 5.2.0 rc2, than the field "Date (fixed)" is converted in "date" when exported in .doc or when imported from .doc. Among all fields date in MS WW, it seems better to convert "Date (fixed)" in "createdate" and "createdate" in "Date (fixed)" which is used in models. What to do with other date fields in MS WW ????

To test, create a document with two fields date : one "Date" and other "Date (fixed)". Export in ".doc". When opening with LO, all fields are "Date". What happens with MS WW ? Where is the bug : in export or import ?
Comment 8 Aron Budea 2016-07-21 02:42:09 UTC
(In reply to royerjy from comment #7)
Someone reported an issue with fixed dates becoming just dates (bug 100961). Based on your hint, I managed to reproduce it, as the bug only occurs when the document is converted to DOC format. Thanks!


Also, adding keywords filter:doc and docx to this report, as it seems to concern those filters.
Comment 9 royerjy 2016-07-21 05:42:39 UTC
(In reply to Aron Budea from comment #8)
> (In reply to royerjy from comment #7)
> Someone reported an issue with fixed dates becoming just dates (bug 100961).
> Based on your hint, I managed to reproduce it, as the bug only occurs when
> the document is converted to DOC format. Thanks!

It appears also with .docx. I don't tried others filters.

> 
> 
> Also, adding keywords filter:doc and docx to this report, as it seems to
> concern those filters.
Comment 10 Aron Budea 2016-07-21 06:30:39 UTC
(In reply to royerjy from comment #9)
> It appears also with .docx. I don't tried others filters.

For me it was fine with DOCX export, the date remained fixed both after converting to DOCX, and then back to ODT. I used 5.1.4.2, which version did you try it with?
Comment 11 royerjy 2016-07-21 07:21:09 UTC
(In reply to Aron Budea from comment #10)
> (In reply to royerjy from comment #9)
> > It appears also with .docx. I don't tried others filters.
> 
> For me it was fine with DOCX export, the date remained fixed both after
> converting to DOCX, and then back to ODT. I used 5.1.4.2, which version did
> you try it with?

I tried again with two new documents in .docx (WW 2017-2013 and Open XML). It is was almost good, but French date month is converted to English :
"21 juillet 2016" come back to "21 July 2016" in "Date (fixed)".
Comment 12 Aron Budea 2016-07-21 07:56:42 UTC
(In reply to royerjy from comment #11)

Thanks for the feedback, I added it to bug 100961, and since this bug report seems to be about a slightly different issue, I suggest using the other one if you have any further comments in the future regarding the changing between fixed/non-fixed dates.
Comment 13 royerjy 2016-11-03 14:18:17 UTC
Still presents in 5.2.3/RC3 on Linux 64 bits
Comment 14 QA Administrators 2017-12-10 16:40:22 UTC Comment hidden (obsolete)
Comment 15 QA Administrators 2019-12-11 03:38:53 UTC Comment hidden (obsolete, spam)
Comment 16 Justin L 2022-03-08 08:10:49 UTC
Created attachment 178713 [details]
Test.pdf: created by Word 2003 - showing the date as a date format

repro 7.4+
Comment 17 Justin L 2023-05-25 00:04:37 UTC
Fixed in 7.4 by commit 377e6f7e8556516b6d1698c58857a5662e6f5660
Author: Justin Luth on Wed Mar 9 11:38:26 2022 +0200
    tdf#147861 ww8import: use GetFieldResult, not current DocProperty

*** This bug has been marked as a duplicate of bug 147861 ***