incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 118999] New: Leap year not correctly caluculated
Date Thu, 01 Mar 2012 00:45:22 GMT

             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

Created attachment 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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message