Fix getDaysOfWeek method type