fix(sharing): Don't change the type of the controller argumentfeat/localized-ownership-transfer-target
@@ -648,8 +648,8 @@ class ShareAPIController extends OCSController { | |||
//Expire date | |||
if ($expireDate !== '') { | |||
try { | |||
$expireDate = $this->parseDate($expireDate); | |||
$share->setExpirationDate($expireDate); | |||
$expireDateTime = $this->parseDate($expireDate); | |||
$share->setExpirationDate($expireDateTime); | |||
} catch (\Exception $e) { | |||
throw new OCSNotFoundException($this->l->t('Invalid date, date format must be YYYY-MM-DD')); | |||
} |