mbostock/d3 — pull request #415 by GerHobbelt (2011-12-26 07:14:24+00:00)
Title: bugfix for the calendar display (e.g. http://mbostock.github.com/d3/ex/calendar.html)

This edit fixes the days vs. months outline drawing error as visible at, f.e.:
http://mbostock.github.com/d3/ex/calendar.html

The magic is to replace
.getUTCMonth() + 1
with
.getUTCMonth() + 2
so that each calculated month' outline renders the outline for one month only - the original code rendered an outline around the whole year, then separate lines between the months within the year, where the latter are double-drawn as both halves of the calculated path overlap.

The other bit of change assigns the 'qX-9' class for day cells which do not have a data value. Merely a cosmetic/superfluous thing.