Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/files_sharing/lib/Controller/ShareAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

Expand Down
Loading