From 0ffec5b955bb7dc4cff3618abe18ee116efee7bf Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 10 Jun 2024 08:52:52 +0200 Subject: fix(sharing): Fix type of expireDate for providers Signed-off-by: Joas Schilling --- apps/files_sharing/lib/Controller/ShareAPIController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_sharing/lib/Controller') diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 1e7ddc2ab01..9f483cd23d8 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -656,8 +656,8 @@ class ShareAPIController extends OCSController { if ($expireDate !== null) { 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')); } -- cgit v1.2.3