Show local time in past attempt labels
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Lỗi nằm ở renderAttemptHistory trong web/app.js, hàm này định dạng nhãn của từng lần thử trước đó bằng toLocaleDateString() dù lần thử vẫn giữ dấu thời gian của nó. Hãy đọc hàm đó trước, rồi đọc bài kiểm thử hồi quy trên trình duyệt bao phủ lịch sử tài khoản và thiết bị với nhãn sắp xếp từ mới nhất đến cũ nhất. Hoàn thành khi nhãn bao gồm giờ địa phương, trường hợp UTC rơi vào ngày địa phương kế tiếp vượt qua, và các bài kiểm thử lobby đều đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 160
- Fork
- 64
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 124
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sysprog21/codetrial
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
sysprog21/codetrial#318 · 3 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Candidate test cases persist across interviews for the same problem in the same tabCó thể đã có người làm @MZGamer đã nhận 1 ngày trước. Đang mở
sysprog21/codetrial#336 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
A correct C solution to Clone Graph does not compileCó thể đã có người làm @Wu-1127 đã nhận 1 ngày trước. Đang mở
sysprog21/codetrial#332 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Run the live interviewer on a local speech pipelineCó thể đã có người làm @alanhc đã nhận hôm nay. Đang mở
sysprog21/codetrial#330 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Let the candidate undo Continue without camera in the preflightCó thể đã có người làm @HALA1028 đã nhận 2 ngày trước. Đang mở
sysprog21/codetrial#327 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sysprog21/codetrial
Issue tương tự
-
The book has a Nix install section that chelis.ch lacks, and it names two of the three systemsĐang mởarea:ecosystem documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Chelis-Lang/chelis#3866 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[安卓Feature]: 数字键盘左侧符号区域大小优化Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
metasequoiaime/msime#8620 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-detection macos p2 triaged
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug documentation sev-0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày