Bug 81341 - DOCX: Preservation: Fields:Date And Time:Edit Time is converted to plain text after RT
Summary: DOCX: Preservation: Fields:Date And Time:Edit Time is converted to plain text...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) Master
Hardware: Other All
: medium normal
Assignee: Not Assigned
Whiteboard: target:4.4.0
Depends on:
Blocks: DOCX-Fields
  Show dependency treegraph
Reported: 2014-07-14 11:40 UTC by pallavi.jadhav
Modified: 2020-10-18 11:29 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:

EditTime : Arabic,Alphabetic,roman,ROMAN,CardText,OrdText,Hex,DollarText,Upper,Lower,FirstCapital,TitleCase (12.85 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2014-07-14 11:42 UTC, pallavi.jadhav

Note You need to log in before you can comment on or make changes to this bug.
Description pallavi.jadhav 2014-07-14 11:40:23 UTC
Steps to reproduce :
1] Open attached document in LO
2] Perform save_as to DOCX
3] Open saved file in MS Office-2010

Current behavior :
Formats of Edit Time are not getting preserved after RT.
Edit Time field is converted to plain text after RT.

Expected behavior :
Edit Time should be preserved after RT.

Steps to add Edit Time in DOCX :
Insert -> Quick Parts -> Field -> EditTime
add Edit Time

XML difference :
In document.xml,

Original file :
<w:fldSimple w:instr=" EDITTIME \* roman \* MERGEFORMAT ">
        <w:noProof />
    <w:t xml:space="preserve">

In RT file :
    <w:rPr />
        DocInformation:Total editing time
<w:rPr />
    <w:t xml:space="preserve">
<w:rPr />
Comment 1 pallavi.jadhav 2014-07-14 11:42:44 UTC
Created attachment 102768 [details]
EditTime : Arabic,Alphabetic,roman,ROMAN,CardText,OrdText,Hex,DollarText,Upper,Lower,FirstCapital,TitleCase
Comment 2 Kevin Suo 2014-07-15 04:41:18 UTC
added Bug 5988 as see also.
In fact there are many other fields become field names when export as DOCX.
Comment 3 Jorendc 2014-07-15 11:59:37 UTC
Synerzip -> NEW
Comment 4 Commit Notification 2014-08-01 11:33:49 UTC
Pallavi Jadhav committed a patch related to this issue.
It has been pushed to "master":


fdo#81341 : DOCX: EditTime is not geting preserved after RT

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:
Affected users are encouraged to test the fix and report feedback.
Comment 5 Kevin Suo 2014-08-01 14:51:56 UTC
Will the fix of this bug also fix bug 59886?
Comment 6 Jorendc 2014-09-01 08:30:47 UTC
Fix applied + Unit test -> RESOLVED FIXED
Comment 7 Kevin Suo 2014-09-01 08:37:55 UTC
It will be really appreciated if someone backport this to version 4.3.
Comment 8 Jorendc 2014-09-01 08:40:10 UTC
dangit, I think I did close this too soon. Edittime is fixed, not the date-field yet. Sorry for the noise.
Comment 9 Matthew Francis 2015-01-16 13:54:53 UTC
Other bugs on the inability to save fields in .doc/.docx have been closed as duplicates of bug 67207 - but I'll skip this one as it's assigned
Comment 10 tommy27 2015-11-03 06:27:03 UTC

are you still working on this bug?
if NO, please revert "Assigned to" to default
Comment 11 Xisco Faulí 2016-09-14 22:43:55 UTC
Hi Pallavi,
I'm setting this ticket back to NEW as it has been inactive for more than 3
Feel free to assign it back to you if you're still working on this.
Comment 12 QA Administrators 2018-10-18 02:49:33 UTC Comment hidden (obsolete, spam)
Comment 13 QA Administrators 2020-10-18 04:16:46 UTC Comment hidden (obsolete)
Comment 14 Kevin Suo 2020-10-18 11:29:44 UTC
This bug was set back to NEW because the date field was not fix, as explained in comment 8. However, the date field issue was confirmed FIXED a long time ago as shown in bug 59886.

Closing this one as FIXED.