https://bugs.documentfoundation.org/show_bug.cgi?id=158737

            Bug ID: 158737
           Summary: Calc - date formatting creating wrong date when using
                    reference to cell on other sheet
           Product: LibreOffice
           Version: 7.6.4.1 release
          Hardware: x86-64 (AMD64)
                OS: macOS (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Description:
This is the strangest thing I've seen in Calc.
I have put the date on the first sheet and reference that cell using
=Sheet1!cellNo onto the following 3 sheets. (please see attached screenshot)
You will see on the first sheet the date is Dec 15, 2023 (shown as 2023-12-15)
On the right side you see sheet 3 that should have the same date as it is
linked to the date in the first sheet.  But that date show 2023-12-23.
I expect that the date should be the same on every sheet.

I've noticed that this happens only on the first time you change the date
format on the linked cell.  If you change the format to another date format and
then change it back, the proper date is shown.  Strange!

Steps to Reproduce:
1. Add date on first sheet 
2. Format as YYYY-MM-DD
3. reference the cell with the date on another sheet
4. format as YYYY-MM-DD
5. Check if the date is the same.

Actual Results:
Wrong date is shown.

Expected Results:
Exactly the same date since they are both using the same cell data.


Reproducible: Didn't try


User Profile Reset: No

Additional Info:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 8; OS: Mac OS X 12.7.2; UI render: default; VCL: osx
Locale: en-CA (en_CA.UTF-8); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to