Summary:
If the user has an incorrectly set local clock, the UI will incorrectly show that the voting is closed although it is still open. Current time should be retrieved from the server instead of relying on the local clock.
Steps to reproduce:
- Open vote that expires in e.g. 5 min.
- Set local clock for 5 min into the future.
- Attempt to vote.
Wrong:
UI shows voting is closed.
Expected:
UI should show that voting is still open.
Suggestion:
Initially the app should retrieve the current time from the server, and compute the diff with local clock. Each time the app needs to check the current time, it should compute it from the local clock by adding this diff to get the real time.
Summary:
If the user has an incorrectly set local clock, the UI will incorrectly show that the voting is closed although it is still open. Current time should be retrieved from the server instead of relying on the local clock.
Steps to reproduce:
Wrong:
UI shows voting is closed.
Expected:
UI should show that voting is still open.
Suggestion:
Initially the app should retrieve the current time from the server, and compute the diff with local clock. Each time the app needs to check the current time, it should compute it from the local clock by adding this diff to get the real time.