https://bz.apache.org/ooo/show_bug.cgi?id=126361

          Issue ID: 126361
        Issue Type: DEFECT
           Summary: user-field of type date has wrong value with local
                    en/US
           Product: Writer
           Version: 4.1.1
          Hardware: PC
                OS: Windows 7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P5
         Component: programming
          Assignee: issues@openoffice.apache.org
          Reporter: a...@acc.grutzeck.net

Created attachment 84785
  --> https://bz.apache.org/ooo/attachment.cgi?id=84785&action=edit
userfield declaration only in style.xml

The attached document contains a userfield in the header of the type date. The
document was generated by changing the xml of the userfield named "date" to
datatype "date" and setting the date-value tag to "2015-05-10T12:00:00".

If you open the documents in the Apache OpenOffice 4.1.1 German (Germany) on
Windows 7, then you will see in the header the correct date wrongly formatted
"05/10/2015 12:00:00" instead of "10.05.2015 12:00:00" as defined in the
document. For the document
date-userfield-decl-style-and-body-header-content.dot, the date is shown in the
header as "05/10/2015 12:00:00" instead of "10.05.2015 12:00:00", for the body
it is shown correctly as "10.05.2015 12:00:00".

Additional I have installed the English Language Pack . If you change the
language of OpenOffice to English (US) for User language, locale and default
language for documents, then the behaviour is different:

 * date-userfield-decl-style.dot (userfield declaration only in style.xml):
    The date in the header is shown as "05/10/2015 12:00:00" instead of
    "10.05.2015 12:00:00"

 * date-userfield-decl-body.dot (userfield declaration only in content.xml):
    The date in the header is shown as "08/07/3053 00:00:00" instead of
    "10.05.2015 12:00:00"

 * date-userfield-decl-style-and-body.dot
   (userfield declaration in style.xml and content.xml):
    The date in the header is shown as "08/07/3053 00:00:00" instead of
    "10.05.2015 12:00:00"

 * date-userfield-decl-style-and-body-header-content.dot
   (userfield declaration in style.xml and content.xml, get userfield in
    header and body):
    The date in the header is shown as "08/07/3053 00:00:00" instead of
    "10.05.2015 12:00:00"
    The date in the body is shown as "07.08.3053 00:00:00" instead of
    "10.05.2015 12:00:00"

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

Reply via email to