Issue 115028 - ISO date is different with different versions of Calc
Summary: ISO date is different with different versions of Calc
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: open-import (show other issues)
Version: OOo 3.2.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 08:53 UTC by Risto Jääskeläinen
Modified: 2013-01-29 21:43 UTC (History)
2 users (show)

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


Attachments
Spreadsheet where ISO dates are different with different versions of Calc (139.05 KB, text/plain)
2010-10-12 09:01 UTC, Risto Jääskeläinen
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Risto Jääskeläinen 2010-10-12 08:53:12 UTC
I copied ISO dates to Calc Spreadsheet from WWW page using test version of OO.o
(3.3) in Ubuntu.  Now when I open those files with official OO.o 3.2.1 dates are
changed so that 2010-10-01 is 2006-09-30.  Strange thing is that INT function of
that cell gives different results in different versions so it seems like numbers
is changing when loading the file to Calc. In both cases the base date of Calc
is same 12/30/1899 (default).

I hope this is only in Ubuntu (or maybe between GO-OO and OO.o) but one user
complaint a bit same kind of phenomenon when his Windows 7 was updated. Dates
was changed.  So it is also possible that whole date program of Calc is a bit
messed up.
Comment 1 Risto Jääskeläinen 2010-10-12 09:01:07 UTC
Created attachment 72018 [details]
Spreadsheet where ISO dates are different with different versions of Calc
Comment 2 Risto Jääskeläinen 2010-10-12 09:04:26 UTC
If I can remember correctly the attached file is created with 3.3 but updated
with 3.2.1. So dates was correct after copying from www page with 3.2.1 but they
are not any more.
Comment 3 ooo 2010-10-12 11:49:10 UTC
@ristoi:
Please check your Tools->Options->Calc->Calculate->Date setting _before_ loading
the document and set it to 1899-12-30 if it wasn't, then the dates should be
correct again. Apparently there's a bug if the setting was something different,
in your case 1904-01-01, and a file with a different default setting is loaded.
Comment 4 Risto Jääskeläinen 2010-10-12 14:22:22 UTC
@er
I wrote: "In both cases the base date of Calc
is same 12/30/1899 (default)."
How you understand that?
Comment 5 ooo 2010-10-13 11:39:59 UTC
@ristoi:
I can reproduce this only if the date was 1904-01-01 (or 1900-01-01 for a two
day offset) before loading the document. Note the _before loading_, not when the
document is loaded.
Comment 6 Risto Jääskeläinen 2010-10-14 08:54:20 UTC
Now I have checked (also in Vista) and it really seems be like er says: only if
the base date is BEFORE opening of the spreadsheet non-default 1.1.1904 (last
option) dates on the spreadsheet are changed four years backward.

So may be the bug is not at all hiding in the spreadsheet but there is some
mysterious function which change base date when user is doing something with
Calc.  My intention was never change that base date.

Unfortunately I can't find and reproduce that "mysterious" function which change
base date as a side effect.