Apache OpenOffice (AOO) Bugzilla – Issue 98012
function DAYSINMONTH and DATSINYEAR caculate error
Last modified: 2013-01-29 21:43:14 UTC
[Steps] 1. Create new Calc doc 2. "Insert" -> "Function..."; in "Funciton" bar on the pop-up "Function Wizard" dialog-box, select "Date&Time" in Category dorp-menu, and double-click DAYSINMONTH function in Function box. 3. Type a valid date in "Date" text-box, such as "2008-02-12" [Result] Display 30 in "Function result". [Expectation] The result should be 29. [Addition] <input> --- <result> --- <expected result> 2000-01-03 30 31 2000-02-15 30 29 2000-02-30 31 error 1900-02-29 28 error 1968-02-28 30 28 And the function DAYSINYEAR has the same problem.
I checked with "Ooo 3.1 Multilingual version English UI WIN XP: [DEV300m36 (Build 9369)]" and can confirm the reported effect. I did not test all details, but it seem that the problem also exists in "Ooo 3.0.0 (DE) Multilingual version German UI WIN XP: [OOO300m9 (Build9358)]" and "2.4.1 Multilingual version English UI WIN XP: [680m17(Build9310)]" For further details pls. see attached "samplefile.ods"
Created attachment 59338 [details] Sample file with detailed test results