server
server copied to clipboard
feat(share): save date and time for expiration
Summary
When we store an expiration date for a share, we store only the date, without time. If an user is in UTC + 9 and share a file before 9am, the server will consider the expiration date to be one day earlier (ie. D+6 instead of D+7). Then, the display is wrong.
To fix that, we have to store time.
Fix #43457 Fix https://github.com/nextcloud/server/issues/43243
Checklist
- Code is properly formatted
- Sign-off message is added to all commits
- [x] Tests (unit, integration, api and/or acceptance) are included
- [x] Screenshots before/after for front-end changes
- [x] Documentation (manuals or wiki) has been updated or is not required
- [x] Backports requested where applicable (ex: critical bugfixes)
/backport to stable28
/backport to stable27
/backport to stable26
Added https://github.com/nextcloud/server/issues/43243 as reference in the main comment