]> source.dussan.org Git - nextcloud-server.git/commit
feat(share): save date and time for expiration 43833/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:12:03 +0000 (09:12 +0000)
commita4a7d82a0cb9e2023a0d0719e50738b6fc0a092a
treebfe2f689c3ec43e45ef280d102d8993d70f967ce
parent3f04d6aa0077f01cbeabc5586c0b38754d4cdbe3
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