🐞[BUG] Misleading timezone conversion during policy creation #1194
Labels
4 - Policy Management
backend
Backend related issues
bug
Something isn't working
frontend
Frontend related Issues
R24.8
Description
Happened during testing of #639 on E2E and Dev/Test:
The timezone used for the validUntil date when creating policies is unclear to the user. The date is shown differently in different instances.
Current behaviour
When creating policies from the frontend, one can only input a validUntil time that is in the future. The timezone checked for is the local time.
After creating the policy with a valid timestamp, it is shown with the same timestamp in the detail view:
But in the table view, it is shown in a different timezone:
In the backend it is stored like that as well:
1720535580 converted is 09.07.2024 16:33:00
(But the validUntil date above is the 'correct' one)
When creating policies from the backend, the verification happens with the different timezone, which means I can effectively create policies that are already expired. This should not be possible.
Backend:
Validation works:
Validation does not work for policies <2 hours in the past:
Frontend detail view:
Expected behavior
The validUntil time is always in the timezone of the current user. There is no conversion to a different timezone, as this will only cause confusion.
Steps to reproduce the Bug
Alternatively:
The text was updated successfully, but these errors were encountered: