fix sameDayWithDate