fn timestamp_to_date32<T: ArrowTimestampType>( array: &PrimitiveArray<T>, ) -> Result<ArrayRef, ArrowError>