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

The contest_time may be incorrect in "runs" event feed records for long contests #1013

Open
johnbrvc opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working low priority An issue that can be deferred

Comments

@johnbrvc
Copy link
Collaborator

johnbrvc commented Nov 4, 2024

Describe the issue:
If a "runs" event occurs >= 100 hours into a contest, the contest_time will be trimmed, losing the left most hour digits.

To Reproduce:

  1. Set up a contest that has been up for > 100 hours (you can use the Settings->Times pane to do this)
  2. Submit a run.
  3. Look at the event feed. The "runs" TestCases will all show incorrect contest_time prosperities.

Expected behavior:
The contest_time property should show the correct value.

Actual behavior:
Only the last 2 digits of the hours are included in the contest_time property.

Environment:
All

Log Info:
N/A

Screenshots:
N/A

Additional context:
The core.model.ContestTime.CONTEST_TIME_WITH_MS format constant is incorrect:
private static final String CONTEST_TIME_WITH_MS = "HH:mm:ss.SSS";
It limits hours to 2 digits.

@johnbrvc johnbrvc added bug Something isn't working low priority An issue that can be deferred labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority An issue that can be deferred
Projects
None yet
Development

No branches or pull requests

1 participant