cms-dev / cms-dev/cms

Contest scoreboard clock is running at local time

Open
#367 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
412
Avg merge
6d 10h
Merged PRs (30d)
3

Description

The _get_time() function in cms/cmsranking/static/TimeView.js makes use of the local time. This means that, if one runs a contest in which there is a delay in between the server time and the local time, the scoreboard clock starts with negative values.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in cmsranking/static/TimeView.js at the _get_time() function and inspect how the scoreboard clock obtains its time. Reproduce the clock with a server/local time offset, then verify that the contest clock no longer begins with negative values.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.