@PVince81 the problem is, that the array approach does not allow inserting a datetime object which is required here. Note also that we already do use it in `setExpirationDate()`
https://github.com/owncloud/core/blob/issue/4823/lib/public/share.php#L842