After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 525323 - Pasting of dates between workbooks using different date convensions changes dates
Pasting of dates between workbooks using different date convensions changes d...
Status: RESOLVED DUPLICATE of bug 490419
Product: Gnumeric
Classification: Applications
Component: import/export other
git master
Other All
: Normal minor
: ---
Assigned To: Morten Welinder
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2008-03-31 13:22 UTC by takayuki
Modified: 2008-04-09 11:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description takayuki 2008-03-31 13:22:38 UTC
Please describe the problem:
in linux, all .xls format: when cut and pasting data from one spreadsheet file into another file that originated on a mac, three years and one day is added to each date.

Steps to reproduce:
1. create a mac.xls file in excel for mac
2. move the mac.xls file to linux
3. in linux, open mac.xls file in gnumeric
4. import data (with dates) from an xls file (that originated on linux) into the mac.xls file.


Actual results:
three years and a day should be added to each of the dates on the mac.xls file.

01/01/2007 becomes 01/02/2010

Expected results:


Does this happen every time?
in my case, yes.

Other information:
please email me if you need the files to reproduce this problem.

lawtonpaul@yahoo.com
Comment 1 Morten Welinder 2008-03-31 14:01:39 UTC
It would be helpful if you could attach a sample mac file to this bug report.
I am guessing that the file could actually be empty.
Comment 2 Morten Welinder 2008-03-31 15:45:35 UTC
Never mind, I see the problem.

The source workbook uses a 1904-based calendar; the target uses a 1900-based
calendar.  The pasting is not, in general, going to work as we cannot always
identify dates.  What we can do is something like this:

1. Detect the situation.  (We already do include the date conventions in the
   xml we send.)

2. Pop up a warning dialog.  The situation should be rare enough that it
   will not be too irritating.

3. Offer to do our best conversion effort.
Comment 3 Morten Welinder 2008-04-09 11:42:34 UTC

*** This bug has been marked as a duplicate of 490419 ***