Update class.calendar.php