|
|
|
|
|
|
|
|
//Expire date |
|
|
//Expire date |
|
|
if ($expireDate !== '') { |
|
|
if ($expireDate !== '') { |
|
|
try { |
|
|
try { |
|
|
$expireDate = $this->parseDate($expireDate); |
|
|
|
|
|
$share->setExpirationDate($expireDate); |
|
|
|
|
|
|
|
|
$expireDateTime = $this->parseDate($expireDate); |
|
|
|
|
|
$share->setExpirationDate($expireDateTime); |
|
|
} catch (\Exception $e) { |
|
|
} catch (\Exception $e) { |
|
|
throw new OCSNotFoundException($this->l->t('Invalid date, date format must be YYYY-MM-DD')); |
|
|
throw new OCSNotFoundException($this->l->t('Invalid date, date format must be YYYY-MM-DD')); |
|
|
} |
|
|
} |