Issue 85361 - Calc:edit bar formats dates incorrectly
Summary: Calc:edit bar formats dates incorrectly
Status: CLOSED DUPLICATE of issue 84414
Alias: None
Product: Calc
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.3.1
Hardware: All Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: spreadsheet
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-18 12:45 UTC by Dotan Cohen
Modified: 2008-01-20 20:31 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Dotan Cohen 2008-01-18 12:45:49 UTC
Calc does not respect the locale's LC_TIME setting for date formatting in the
edit bar. Dates are always formatted MM/DD/YYYY regardless of locale.

In this example, I use locale "en_DK.utf8" which has the date format YYYY/MM/DD.

$ locale
LANG=en_DK.utf8
LANGUAGE=en_DK.utf8
LC_CTYPE="en_DK.utf8"
LC_NUMERIC="en_DK.utf8"
LC_TIME="en_DK.utf8"
LC_COLLATE="en_DK.utf8"
LC_MONETARY="en_DK.utf8"
LC_MESSAGES="en_DK.utf8"
LC_PAPER="en_DK.utf8"
LC_NAME="en_DK.utf8"
LC_ADDRESS="en_DK.utf8"
LC_TELEPHONE="en_DK.utf8"
LC_MEASUREMENT="en_DK.utf8"
LC_IDENTIFICATION="en_DK.utf8"
LC_ALL=en_DK.utf8
$ openoffice.org2.3 -calc

Now, I select column A -> Format Cells -> Numbers -> Category -> Date -> Format
-> 1999-12-31. I now enter "2008-1-16" into cell A1 and hit enter. The cursor
moves to cell A2 and I see "2008-01-16" in cell A1. So far so good. Now, I click
on cell A1. The cell still says "2008-01-16" however the input line reads
"01/16/2008".

The edit bar should format dates as they are formatted for display in the cell.
Failing that, it should display in the locale's preferred format.

Note: the problem _may_ be that Gnome's date format is not configured properly.
I use KDE on Ubuntu, with Gnome installed as the default desktop. However, due
to a poorly written ATI driver I cannot open Gnome and change the setting.
Googling and locating has not led me to discover which config file I should edit
in VI to change this setting. In any case, Gnome's setting should _not_ be the
deciding factor in which date format to use. Not everyone uses Gnome, and that
is specifically what LC_TIME is for.
Comment 1 kpalagin 2008-01-20 16:10:41 UTC
This looks like duplicate to http://www.openoffice.org/issues/show_bug.cgi?
id=84414.
Comment 2 Dotan Cohen 2008-01-20 18:06:54 UTC
Yes, this bug is a dupe of bug #84414. I have posted the relevant info there,
with a correction to an error that was posted here. Sorry for the noise,
apparently I missed 84414 when searching.
Comment 3 kpalagin 2008-01-20 20:30:54 UTC
Dup to 84414.

*** This issue has been marked as a duplicate of 84414 ***
Comment 4 kpalagin 2008-01-20 20:31:52 UTC
Closing.