浏览代码

Merge pull request #44916 from nextcloud/followup/44910/share-date-time

fix(sharing): Don't change the type of the controller argument
feat/localized-ownership-transfer-target
Joas Schilling 4 周前
父节点
当前提交
2223e0959f
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      apps/files_sharing/lib/Controller/ShareAPIController.php

+ 2
- 2
apps/files_sharing/lib/Controller/ShareAPIController.php 查看文件

//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'));
} }

正在加载...
取消
保存