changed deprecated call NSWeekdayCalendarUnit to NSCalendarUnitWeekday.