Bug 155100 - Documenting that LibreOffice treats 1900 as a common year, not leap, is needed
Summary: Documenting that LibreOffice treats 1900 as a common year, not leap, is needed
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Olivier Hallot
URL:
Whiteboard: target:7.6.0
Keywords:
Depends on:
Blocks: HelpGaps-NewFeatures
  Show dependency treegraph
 
Reported: 2023-05-01 09:38 UTC by Mike Kaganski
Modified: 2023-05-03 14:18 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2023-05-01 09:38:22 UTC
There is a peculiarity of MS Excel, that it has inherited from Lotus 1-2-3, that it treats year 1900 as leap. [1] This makes dates prior to 1900-03-01 different in Excel and Calc (see e.g. bug 155098).

The [1] shows how MS has documented this special treatment; because it's important in some cases, Google has documented their handling of year 1900 in [2].

We also need to have a similar note, maybe on the page for Calc's Calculate options [3], ISLEAPYEAR function [4], number format codes [5], and who knows where else :-D

[1] https://learn.microsoft.com/en-US/office/troubleshoot/excel/wrongly-assumes-1900-is-leap-year
[2] https://developers.google.com/sheets/api/guides/formats
[3] https://help.libreoffice.org/7.5/en-US/text/shared/optionen/01060500.html
[4] https://help.libreoffice.org/7.5/en-US/text/scalc/01/04060111.html?DbPAR=CALC#bm_id3149566
[5] https://help.libreoffice.org/7.5/en-US/text/shared/01/05020301.html?&DbPAR=CALC&System=WIN
Comment 1 Commit Notification 2023-05-03 04:49:15 UTC
Olivier Hallot committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/18bf37d1dadbdd5631b8c3a60d3385038513f3df

tdf#155100 LibreOffice treats 1900 as a common year, not leap
Comment 2 Stéphane Guillou (stragu) 2023-05-03 13:07:38 UTC
Olivier and Mike, any follow-ups or OK to close?