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

            Bug ID: 90907
           Summary: FILEOPEN: OOXML TIME field locale always en-US
           Product: LibreOffice
           Version: 4.4.1.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: filters and storage
          Assignee: [email protected]
          Reporter: [email protected]

The original XML field definition is:
            <w:r>
                <w:rPr>
                    <w:rFonts w:ascii="Verdana" w:hAnsi="Verdana"/>
                    <w:szCs w:val="20"/>
                </w:rPr>
                <w:instrText xml:space="preserve"> TIME \@ "yyyy. MMMM d."
</w:instrText>
            </w:r>

It is imported as a new style:
        <number:date-style style:name="N10120" number:language="en"
number:country="US">
            <number:year number:style="long"/>
            <number:text>. </number:text>
            <number:month number:style="long" number:textual="true"/>
            <number:text> </number:text>
            <number:day/>
            <number:text>.</number:text>
        </number:date-style>

and field definition:
<text:time style:data-style-name="N10120" 
  text:time-value="2015-04-27T11:00:54.995000269">
  2015. April 27.
</text:time>

The problem is the month name. The converter process the format string and 
prepare the order and separator characters properly. I think the 
- number:language and
- number:country attributes should be assumed from the sytem locale settings,
instead of using en-US. In my case this produce the value of
"2015. April 27." instead of "2015. április 27."

Only date formats with month names are affected.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to