diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 5a9317b772cc7..623a5fdba0d49 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1737,6 +1737,7 @@ private function parseDate(string $expireDate): \DateTime { // Make sure it expires at midnight in owner timezone $date->setTime(0, 0, 0); } catch (\Exception $e) { + // TRANSLATORS Error of the share API for an invalid expireDate parameter. YYYY-MM-DD is the technical format the API expects (year-month-day), not how dates are displayed. Keep this order. throw new \Exception($this->l->t('Invalid date. Format must be YYYY-MM-DD')); }