changed datetime.date to datetime in get_data_availability

Otherwise I had this error: 'datetime.date' object has no attribute 'date'