https://issues.apache.org/ooo/show_bug.cgi?id=118999
Bug #: 118999
Issue Type: DEFECT
Summary: Leap year not correctly caluculated
Classification: Application
Product: Spreadsheet
Version: OOo 3.4 Beta
Platform: PC
OS/Version: All
Status: CONFIRMED
Severity: normal
Priority: P3
Component: formatting
AssignedTo: [email protected]
ReportedBy: [email protected]
Created attachment 77261
--> https://issues.apache.org/ooo/attachment.cgi?id=77261
Fix the leap year calculation
Calc converts 2000-2-29 into 1899-12-30 on load, This is due to a an error when
calculating if the year is a leap year or not. The used formula has a negation
applied in an incorrectly placed parenthesis.
The issue was detected in LibreOffice (with some duplicates in our Bugzilla,
unexplainably closed).
The attached patch is completely mine and therefore freely available under AL2;
I just haven't been able to test it in my system as the build is broken here.
--
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.