]> source.dussan.org Git - nextcloud-server.git/commit
fix(share): use user timezone to parse share expiration date
authorBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
Mon, 8 Jan 2024 23:46:26 +0000 (00:46 +0100)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Mon, 15 Jan 2024 09:22:09 +0000 (09:22 +0000)
commit57574d9d9aabdaf1f692389df7e1e3012b8fcc2e
tree4d8f9d9a6fb3f3c19592fc583e13b7d69fccb837
parentb768934478c53bb888f5b93ce3bb733d3912d77f
fix(share): use user timezone to parse share expiration date

If an user in UTC+1 try to create a share at 00:00, it's day D for him, but
D-1 for the server (UTC).
This fix aims to apply the correct offset

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
apps/files_sharing/lib/Controller/ShareAPIController.php
apps/files_sharing/openapi.json
apps/files_sharing/tests/ApiTest.php
apps/files_sharing/tests/Controller/ShareAPIControllerTest.php