]> source.dussan.org Git - nextcloud-server.git/commit
feat(share): save date and time for expiration 43832/head
authorBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Wed, 7 Feb 2024 11:06:12 +0000 (12:06 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Mon, 26 Feb 2024 09:10:26 +0000 (09:10 +0000)
commit1b30da153ce6e7968ab016dba27746bb495ac367
tree0528bcdde8e42afeaa39f915709ba2cfa800aa6d
parent259073f8067cb5ba5ee6c735a8bd7ab55abc4147
feat(share): save date and time for expiration

Because of timezones, not saving time can lead to unexpected behaviour
when sharing an item sooner than timezone offset
Example: sharing a file before 9am when in UTC+9

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
apps/files_sharing/lib/Controller/ShareAPIController.php
apps/files_sharing/tests/ApiTest.php
apps/files_sharing/tests/CapabilitiesTest.php
apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
lib/private/Server.php
lib/private/Share20/Manager.php
tests/lib/Share20/ManagerTest.php