Skip to content
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

iCAT time elapsed depends on accurate time set on browser #14

Open
ghamerly opened this issue May 25, 2015 · 1 comment
Open

iCAT time elapsed depends on accurate time set on browser #14

ghamerly opened this issue May 25, 2015 · 1 comment
Labels

Comments

@ghamerly
Copy link
Member

Events displayed in iCAT display how long since the event happened, e.g. "5 minutes ago". The calculation for this elapsed time is done in Javascript on the browser, and depends on doing a subtraction between current time on the browser and the time of the event. Thus, if the browser's computer clock is wrong, the elapsed time will be wrong. It also currently has a hack which requires the Javascript to know the timezone of the contest (which is also set in the config.yaml, but JS does not pull from there).

We need to rework the javascript elapsed time calculations so that:

  1. it does not rely on the browser's time being correct,
  2. it does not need to know the timezone of the contest, if possible, and
  3. if it does need to know the timezone of the contest, it pulls it from the config file rather than hardcoding it.
@sjoqvist
Copy link
Member

I created #34 to at least solve a part of this. This ticket might still need to be revisited afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants