Proper calendar generation.

Fix #3.