-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display Share Expiry Based on UTC Time #47176
Comments
I think the expected behavior is to have the time in the users timezone that created the setting. |
Exactly. We should expire based on the shared user's time zone, not the sharer's or the server's time zone. |
I think that would be an enhancement. The most important part is properly displaying how long before the share expires. We could do this with the new public sharing UI for 31 🤔 Just so you know, we already use the owner timezone (26.0.13, 27.1.8, 28.0.4 and 29.0.0) TODO
|
I was not able to reproduce. If you can reproduce on latest master, please reopen with reproduction steps. |
Keeping opened because my TODO still stands :) |
@marcoambrosini please align with @nfebe on how to approach displaying this 🙏 |
Outcome of my discussion with @nfebe For the share list in the files interface, we could display a ![]() Additionally, every time we're setting an expiration date for a share using the date input field, we can display this information as info text for the input field (there should be a string prop available for the component), but since in this case the date is displayed in the input field itself, we could limit this to time and timezone: ![]() The share will expire at |
Bug description
When user set the share expiration time, it's not expiring based on user's locale.
I shared a file at 26.07.2024 10:21 and set the expiration date to 29.07.2024 10:21. Default time, log time zone is Europe/Berlin. Server time is UTC. Locale is German. Language is English (US). Nextcloud version is v29.0.4.
29.07.2024 10:21 didn't expire.
OC_SHARE table
Details
"expiration" is null in OC_Share table however I set the expiration date.
Maybe these questions can help
Possible Solution
We can hold in DB the timezone difference between UTC and timezone of the shared user and calculate the diff and expire in correct time zone. Therefore, we will not rely on the user's timezone, we will rely on the difference between server time and the timezone of the shared user.
Steps to reproduce
Expected behavior
Share expiration time must be based on user's locale.
Nextcloud Server version
29.0.4
The text was updated successfully, but these errors were encountered: