News for hackers. Stuff that matters.
Re:Android 4.2: December month missing in calendar by solarexplorer on Saturday November 17, 2012 @10:11PM (#4799700)
I guess the idea is to use the month as an array index to convert it into a string. You don't usually convert the day of month or the year into a string.

Nontheless I agree that it's bad API design.

Re:Android 4.2: December month missing in calendar by pwg on Sunday November 18, 2012 @10:15AM (#4800686)
Then declare the array with 13 slots, fill slots 1-12 with the appropriate strings, and don't use slot 0. Or better, put in an error check for being passed a zero.

Suddenly, a 1-12 value for "month" is directly an index into an array to convert the number into a string...