Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Show local time in past attempt labels

Cerrado Apto para principiantes
#317 2 comentarios 1 reacción 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@jin11109 ya está trabajando en esto.

Desde el 15/10/2026.

  • #338 de @jin11109 — fusionado

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript
Área
frontend

Línea de trabajo

El error está en renderAttemptHistory en web/app.js, que formatea la etiqueta de cada intento anterior con toLocaleDateString() aunque el intento conserva su marca de tiempo. Lee primero esa función y luego la prueba de regresión del navegador que cubre el historial de cuenta y de dispositivo con etiquetas del más reciente al más antiguo. Está terminado cuando las etiquetas incluyen la hora local, el caso UTC que cae en la fecha local siguiente pasa y las pruebas del lobby pasan.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
160
Forks
64
Merge medio
1 d 11 h
PR fusionados (30 d)
132

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sysprog21/codetrial

Todos los issues de sysprog21/codetrial

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.