Bug 141472 - UK format dates reduced by 4 years and 1 day when copied/moved to different spreadsheet
Summary: UK format dates reduced by 4 years and 1 day when copied/moved to different s...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.4.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-03 11:16 UTC by Bob Bruynooghe
Modified: 2021-04-05 21:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Original spreadsheet containing 2 sheets (36.26 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-04-04 08:00 UTC, Bob Bruynooghe
Details
Spreadsheet into which 2 sheets have been copied (33.18 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-04-04 08:01 UTC, Bob Bruynooghe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Bruynooghe 2021-04-03 11:16:38 UTC
I use Calc for our accounts and I wanted to move old sheets to another spreadsheet. The dates (UK Format) in the sheets when moved change by 4 years and 1 day, e.g. 23/12/2020 becomes 22/12/2016. This happens with all dates in all the sheets I have moved or copied.
Comment 1 Aron Budea 2021-04-04 00:13:42 UTC
What is the version you are using, and could you upload a sample spreadsheet with direct reproduction steps?
Comment 2 Bob Bruynooghe 2021-04-04 08:00:15 UTC
Created attachment 170944 [details]
Original spreadsheet containing 2 sheets
Comment 3 Bob Bruynooghe 2021-04-04 08:01:35 UTC
Created attachment 170945 [details]
Spreadsheet into which 2 sheets have been copied
Comment 4 Bob Bruynooghe 2021-04-04 08:13:23 UTC
The version of LibreOffice is 

Version: 6.4.6.2
Build ID: 0ce51a4fd21bff07a5c061082cc82c5ed232f115
CPU threads: 4; OS: Mac OS X 10.16; UI render: default; VCL: osx; 
Locale: en-GB (en_GB.UTF-8); UI-Language: en-US
Calc: threaded

(Finder says it is 6.4.6002)

I have uploaded 2 spreadsheet files: the first is a duplicate of the file with which I had the original problem but with its contents much reduced and the second is the file into which the 2 sheet from the first file have been copied. I did the copy using the menu from the right hand mouse button on hovering over the sheet name. The first column in both sheets contains dates and it is these dates have been changed in the copying process. For example the first date in the Laura Ashley sheet is 12/11/2009 in the original spreadsheet and after copying it has become 11/11/2005.

regards

Bob
Comment 5 laurent combe 2021-04-05 08:46:01 UTC
in the original spreadsheet there is a specific option for date
go to the option menu (click on incon in the upper right corner)

in the menu, choose 'options ...', 'LibreOffice Calc' and 'calculate'
in this popup you have a section Date with 3 choices
in the Original Spreadsheet the '01/01/1904' option is selected

when you copy your data to another spreadsheet with the default option (12/30/1899) your date appeared to be different with 4 years less
Comment 6 Bob Bruynooghe 2021-04-05 21:05:29 UTC
Thanks. Problem solved. I have marked it as Resolved/Not a bug. I hope that is the correct thing to have done.

Bob