https://bugs.documentfoundation.org/show_bug.cgi?id=172342

            Bug ID: 172342
           Summary: DOCX field functions (PRINTDATE, SAVEDATE, TIME,
                    DocParam) display incorrect values in LibreOffice
                    Writer
           Product: LibreOffice
           Version: 26.2.3.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 207337
  --> https://bugs.documentfoundation.org/attachment.cgi?id=207337&action=edit
Sample docx file which can be used to reproduce the issue

Issue Description:
When opening a Microsoft Word (.docx) document containing field functions in
LibreOffice Writer, the field values are not rendered correctly.
The same document displays correctly in Microsoft Word, but in LibreOffice:

    *Field values differ from the expected output
    *Some date/time fields show incorrect timestamps or different formats
    *Field formatting switches such as \* MERGEFORMAT are not respected
    *Output is inconsistent with Microsoft Word rendering

This leads to incorrect document display and potential data inconsistency when
using LibreOffice for DOCX files containing field functions.

Similar compatibility problems with DOCX fields and unresolved field values
have been reported in LibreOffice, but this specific case with these field
types and formatting does not appear to be tracked.

Steps to Reproduce:
1.Open Microsoft Word
2.Create a new document
3.Insert the following field functions:
    *PRINTDATE
    *SAVEDATE
    *TIME (with formatting, e.g., "dd.MM.yyyy")
    *DocProperty / DocParam

4.Ensure fields include formatting switches (e.g., \* MERGEFORMAT)
5.Save the document as .docx
6.Open the same file in LibreOffice Writer
7.Observe field values

Actual Results:
*Field values are displayed incorrectly compared to Microsoft Word
*Date/time fields show wrong values or formats
*Formatting switches (e.g., MERGEFORMAT) are ignored or not applied properly
*Output does not match expected Word rendering

Expected Results:
*LibreOffice Writer should correctly evaluate and display all DOCX field
functions
*Field results should match Microsoft Word output
*Formatting switches (e.g., date formats, MERGEFORMAT) should be honored
*Consistent values should be displayed across applications

Reproducibility : Always

Additional Information: 
Version: 26.2.3.2 (X86_64)
Build ID: 70e089b17412e4cb7773e41413306b17a2328c34
CPU threads: 20; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan;
VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to