server icon indicating copy to clipboard operation
server copied to clipboard

feat(share): save date and time for expiration

Open Altahrim opened this issue 1 year ago • 4 comments

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

Altahrim avatar Feb 07 '24 11:02 Altahrim

/backport to stable28

Altahrim avatar Feb 09 '24 08:02 Altahrim

/backport to stable27

Altahrim avatar Feb 09 '24 08:02 Altahrim

/backport to stable26

Altahrim avatar Feb 09 '24 08:02 Altahrim

Added https://github.com/nextcloud/server/issues/43243 as reference in the main comment

artonge avatar Feb 15 '24 16:02 artonge