Show local time in past attempt labels
Maintainers usually reply within 1 day
@jin11109 is already working on this.
Since Oct 15, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript
- Domain
- frontend
Research direction
The bug is in renderAttemptHistory in web/app.js, which formats each past attempt's label with toLocaleDateString() even though the attempt keeps its timestamp. Read that function, then the browser regression test that covers account and device history with newest-first labels. Done when the labels include local time, the UTC case that falls on the next local date passes, and the lobby tests pass.
Written by the indexing model from the issue text.
Description
Past attempts shows only the date in each row label. Two interviews completed on the same day with the same problem, language, and verdict therefore have identical labels, making it difficult to choose the intended report.
I reproduced this on main at 6b6cdfe using synthetic history in Chromium with the Asia/Taipei time zone and en-US locale. Attempts saved at 2026-01-01T16:15:00Z and 2026-01-02T10:30:00Z both display "1/2/2026 · Same problem · Python · HIRE". The expected labels include their local times, 12:15:00 AM and 6:30:00 PM.
The cause is renderAttemptHistory in web/app.js, which uses toLocaleDateString() even though each attempt retains its timestamp. A local proof of concept uses toLocaleString(), matching the date and time format already used by the Download report accessible names. PR #313 addresses downloaded filenames; this proposal only changes the visible history labels.
The browser regression test covers both account history and device history, checks newest-first labels, and includes a UTC timestamp that falls on the next local date. Both cases failed before the fix. After the fix, all 139 lobby tests passed with no skips. The source build and full test gate are still being checked; I am not claiming they pass.
- Dominant language
- Rust
- Stars
- 160
- Forks
- 64
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 116
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sysprog21/codetrial
-
Four problem loader browser tests fail on WindowsPossibly taken @Patriciaath999 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sysprog21/codetrial#322 · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
sysprog21/codetrial#318 · 2 comments · 2 reactions ·
Maintainers usually reply within 1 day
-
Highlight the active line in the code editorPossibly taken @ArthurArthurArthur0817 claimed this 10 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
sysprog21/codetrial#247 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Let the candidate undo Continue without camera in the preflightPossibly taken @HALA1028 claimed this 1 day ago. Open
sysprog21/codetrial#327 · 1 assignee ·
Maintainers usually reply within 1 day
-
Share the RoomService transport and add DeleteRoomPossibly taken @dges5202 claimed this 1 day ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
All issues in sysprog21/codetrial
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EmbarkStudios/cargo-deny#910 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tursodatabase/turso#10054 ·
Maintainers usually reply within 1 day
-
build: Update rust versionPossibly taken A pull request linked to this issue is open or already merged. Opendependencies
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
ibm-granite-community/granite-cli#229 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
orottier/web-audio-api-rs#658 ·