Skip to content

Commit

Permalink
Merge pull request #44916 from nextcloud/followup/44910/share-date-time
Browse files Browse the repository at this point in the history
fix(sharing): Don't change the type of the controller argument
  • Loading branch information
nickvergessen authored Apr 18, 2024
2 parents a540f54 + 490f545 commit 2223e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files_sharing/lib/Controller/ShareAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,8 @@ public function createShare(
//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'));
}
Expand Down

0 comments on commit 2223e09

Please sign in to comment.