Skip to content

Retrieve current time from server instead of relying on local clock #133

@gw0

Description

@gw0

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:

  1. Open vote that expires in e.g. 5 min.
  2. Set local clock for 5 min into the future.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions