Reply To: monthselector showing results of all years

Here is the fix I am using (lib/functions/ajax.php:614):

if($_POST[‘monthselector’] > 0){
$arrivalFrom = new DateTime($_POST[‘monthselector’]);
$arrivalTo = clone $arrivalFrom;
$arrivalTo->add(DateInterval::createFromDateString(‘1 month’));
$selectors.=”AND arrival BETWEEN ‘” . $arrivalFrom->format(‘Y-m-d’) . “‘ AND ‘” . $arrivalTo->format(‘Y-m-d’) . “‘ “;
}