Mantis - Squeak
Viewing Issue Advanced Details
7097 Kernel minor always 06-16-08 14:38 02-06-11 23:48
nicolas cellier  
closed 3.9  
none trunk  
0007097: Year >> previous returns two years prior in leap years
Year >> #previous fails for any leap year.

E.g. (Year year: 2008) previous. "Answers Year(2006).

The problem is isolated to the inherited method Timespan >> #previous.
The resolution is to implement Year >> #previous.

Attached is the recommended fix and a new YearTest test case.

Brent Pinkney is the maintainer of the Chronology classes.
Brent wrote and tested this fix.
 previousInLeapYearFix-brp.1.cs.gz [^] (466 bytes) 06-16-08 14:38

nicolas cellier   
08-22-10 15:07   
This appears to be resolved in trunk, don't know when...