Show local time in past attempt labels
Los mantenedores suelen responder en 1 día
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
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de sysprog21/codetrial
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Add a Copy code button to the final reportPosiblemente ocupada @yansawu la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
sysprog21/codetrial#318 · 5 comentarios · 2 reacciones · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Show problem difficulty in past attempt labelsPosiblemente ocupada @yuen0428 la tomó hoy. Abierto
sysprog21/codetrial#357 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Add keyboard undo and redo to whiteboard interviewsPosiblemente ocupada @xuntla la tomó hoy. Abierto
sysprog21/codetrial#352 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Let the candidate restore the starter codePosiblemente ocupada @RWong04 la tomó hoy. Abierto
sysprog21/codetrial#348 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de sysprog21/codetrial
Issues similares
-
documentation P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
bug good first issue priority:high
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Konfirm-xyz/konfirm-contracts#163 ·
Los mantenedores suelen responder en 1 día
-
area:gc-repack-output bug factory:dogfood factory:triaged priority:p3 type:bug type:ux
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
gitbutlerapp/grit#1161 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
feature performance
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
lance-format/lance#10137 ·
Los mantenedores suelen responder en 2 días