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

            Bug ID: 143508
           Summary: Locale-specific arguments must be treated depending on
                    the cell's number format locale
           Product: LibreOffice
           Version: unspecified
          Hardware: All
               URL: https://ask.libreoffice.org/en/question/319335/how-to-
                    convert-non-standard-text-to-date/
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: mikekagan...@hotmail.com
                CC: er...@redhat.com

There is an inconsistency how different spreadsheet functions treat their
locale-specific arguments.

TEXT [1] takes cell's locale when processing its 'Format' argument, and thus
'=TEXT(0.1;"0 000.000")' will give different results depending if cell's number
format is set to en-US or ru-RU: "0 000.100" vs "0 000. 000".

DATEVALUE [2], OTOH, does not take cell's number format locale into account
when parsing its argument, so that '=DATEVALUE("03 Jun 2019")' will give the
same result irrespective of the cell's settings - it would be a date when
program's locale is en-US; and it will be Err:502 when program is set to ru-RU
locale.

These should be made consistent, depending on the cell's locale to allow
flexibility.

[1]
https://help.libreoffice.org/7.2/en-US/text/scalc/01/04060110.html?DbPAR=CALC#bm_id3147132
[2]
https://help.libreoffice.org/latest/en-US/text/scalc/01/func_datevalue.html?DbPAR=CALC

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to