MDL-45362 availability_condition: Fixed midnight date check