fix date range for calendar