diff options
author | Louis Chemineau <louis@chmn.me> | 2024-06-26 12:45:23 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-06-26 12:49:42 +0200 |
commit | f5fd6c8f08d0caceac67f5dd00cca58c6174a474 (patch) | |
tree | 895d3add95d2dc3ed6b97d48f7232ed9198a78c0 /apps | |
parent | 5dcb807a98a9863f7d730c3f190e85311eda512b (diff) | |
download | nextcloud-server-f5fd6c8f08d0caceac67f5dd00cca58c6174a474.tar.gz nextcloud-server-f5fd6c8f08d0caceac67f5dd00cca58c6174a474.zip |
fix(files_sharing): Store the expiration date relative to the server's timezone
This is needed as we want to store the difference between the server's and the user's timezones.
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareAPIController.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php index 1f035f1ca87..fb03d94ac0f 100644 --- a/apps/files_sharing/lib/Controller/ShareAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareAPIController.php @@ -1615,9 +1615,6 @@ class ShareAPIController extends OCSController { throw new \Exception('Invalid date. Format must be YYYY-MM-DD'); } - // Use server timezone to store the date - $date->setTimezone(new \DateTimeZone(date_default_timezone_get())); - return $date; } |