Mantis - Squeak
Viewing Issue Advanced Details
2117 System minor always 10-24-05 15:47 12-19-05 16:57
sumi  
 
normal  
closed 3.9  
fixed  
none    
none 3.9  
0002117: Date >> #addMonths: broken
Date today addMonths: 1 " => MessageNotUnderstood: Month>>\\ "

It seems that we have to use #monthIndex instead of #month in order to work the method correctly.
 Date-addMonths.st.gz [^] (244 bytes) 10-24-05 15:48
 DateTest-testAddMonths.st [^] (480 bytes) 12-11-05 16:57

Notes
(0002957)
pmm   
10-24-05 18:43   
Why no use
Date today + 1 month
(0002965)
sumi   
10-25-05 07:53   
I cannot find Integer >> #month in my image (Squeak3.9a-6693.image).
Where does it come from?
(0002977)
pmm   
10-25-05 19:26   
Sorry, you're right.
I thought because there's #day, #hour, ... there whould be a month too.
(0003280)
pmm   
12-11-05 16:49   
added a test
(0003315)
FrankShearar   
12-13-05 10:30   
Date>>month returns a Month, not a number, so the above description is accurate.

Running 3.9a-6705 the fix and test work perfectly. I think the only thing I'd like to see is the description above replicated in the changeset.
(0003358)
ducasse   
12-19-05 16:57   
in 6707