Include local time in downloaded report filenames
Maintainers usually reply within 1 day
Assessment
This issue has not been assessed yet.
Description
Current behavior
reportFilename() in web/download.js generates filenames using only the problem ID and local calendar date.
When multiple interviews for the same problem occur on the same day, their reports receive the same suggested filename, making them difficult to distinguish by name.
Expected behavior
Include the local time in the filename so reports from different interview times on the same day are easier to identify.
For example:
- Current:
interview-report-two-sum-2026-10-14.md - Proposed:
interview-report-two-sum-2026-10-14-153000.md
The proposed suffix uses the format YYYY-MM-DD-HHMMSS.
Proposed change
Update reportFilename() to include the local hours, minutes, and seconds while preserving the existing problem ID sanitization and date formatting.
Update tests/browser/download.test.js to verify the new format, including local date boundaries and different interview times on the same day.
This change only affects downloaded filenames and does not modify report contents.
- Dominant language
- Rust
- Stars
- 160
- Forks
- 64
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 132
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
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Add a Copy code button to the final reportPossibly taken @yansawu claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
sysprog21/codetrial#318 · 5 comments · 2 reactions · 1 assignee ·
Maintainers usually reply within 1 day
-
Show problem difficulty in past attempt labelsPossibly taken @yuen0428 claimed this today. Open
sysprog21/codetrial#357 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Add keyboard undo and redo to whiteboard interviewsPossibly taken @xuntla claimed this today. Open
sysprog21/codetrial#352 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Let the candidate restore the starter codePossibly taken @RWong04 claimed this 1 day ago. Open
sysprog21/codetrial#348 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in sysprog21/codetrial
Similar issues
-
Make major, minor, and makedev safe on solarish targetsPossibly taken @xtqqczze claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Proxy ignores l5d-retry-http and l5d-retry-grpc conditions that follow a comma and spacePossibly taken @RaphaelFakhri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 3 days
-
sncast panics when decoding a `u384` valuePossibly taken @RaphaelFakhri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
foundry-rs/starknet-foundry#4635 ·
Maintainers usually reply within 3 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
crmne/omastats#31 · 1 reaction ·
Maintainers usually reply within 1 day
-
area:desktop priority:p2 type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day