Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Include local time in downloaded report filenames

Đã đóng
#309 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@106081011 đang làm issue này rồi.

Từ ngày 14/10/2026.

  • #313 của @106081011 — đã merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sysprog21/codetrial

Tất cả issue của sysprog21/codetrial

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.