Port of the Kohana v2 calendar to Kohana v3