GNOME Bugzilla – Bug 65045
Function values are displayed with wrong format for locale
Last modified: 2004-12-22 21:47:04 UTC
Tested with "LC_ALL=sv_SE". When I enter "=date(2001;11;17)" in a cell, the output is "11/17/01". This format is very wrong for sv_SE; the correct format should be "01-11-17" or "2001-11-17". When I enter "=time(15;14;5)" in a cell, the output is "3:14 PM". This format is very wrong for sv_SE; the correct format should be "15.14". In short, it seems that Gnumeric doesn't respect the locale at all when assigning the default format.
That is an overstatement. We do try to respect the locale, but it is not trivial. The date/time formats need to be translated from strftime fmt into XL format. As things stand we attempt to guess m/d/y vs d/m/y by using the results of langinfo (D_FMT). No attempt to guess the default seperator or time format has been made. The code is easy to write, but needs alot of testing before it can be deployed due to variety of locales. I don't want to waste alot of resources on it because we are going to rework the format engine after 1.0.
*** This bug has been marked as a duplicate of 33229 ***