Timed events show on their UTC day, not their local day, west of UTC
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 10/100
Línea de trabajo
PR #563 already contains a fix and tests. Review that pull request to see how day and week reads include adjacent days and retain timed events overlapping the local dates; the issue gives no file or test paths to start from.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens
The TUI calendar and the hey event commands put a timed event on its UTC date, not on its local date. In New York, an event that starts after 8 PM shows on the wrong day or does not show.
Steps to reproduce
- Set the machine zone and the HEY account zone to
America/New_York. - In HEY, add an event "Dinner" on Sunday 2026-10-25 from 9:30 PM to 11:00 PM.
- Run
hey event day 2026-10-25. - Run
hey event day 2026-10-26. - Open
hey tui, go to Calendar, and open the day view for 2026-10-25 and 2026-10-26.
Expected
- The dinner shows on Sunday 2026-10-25, at 9:30 PM.
Actual
hey event day 2026-10-25does not show the dinner.hey event day 2026-10-26shows the dinner.- The TUI day view draws the dinner on Monday at 9:30 PM.
- The TUI week view for the week of 2026-10-25 does not show the dinner.
hey event listandhey event weekhave the same problem.hey event edit <id> 2026-10-25does not find the event.
Cause
HEY reads a date in a JSON request as a UTC day. The TUI and the event commands send only a date. In New York, the UTC day 2026-10-26 starts at 8 PM on 2026-10-25. The CLI then groups each event on its local day, so an event from the next UTC day goes on a day that the CLI did not read.
Fix
PR #563 has a fix with tests. A day or week read also reads the one UTC day that the local days reach into. West of UTC, it reads the day after. East of UTC, it reads the day before. In UTC, it reads no extra day. Each edge of the local days uses its own offset, so a DST change and a half-hour zone are correct. It then keeps the timed events that overlap the local days. hey event list widens its window by the same rule, with no extra request.
The fix also:
- starts a day at its first real instant, so a zone that skips or repeats midnight (for example
America/SantiagoorAmerica/Havana) keeps each event on its own day, in the CLI and in the TUI day view. - sorts and prints the times of
hey event day,hey event weekandhey event listin the HEY account's zone, not the machine's zone. All-day events stay dates, and--jsonkeeps UTC.
Environment
- Found on
mainat206753c(v1.8.1).mainateef0bd8has no fix yet. - Linux,
America/New_York
- Lenguaje dominante
- Go
- Estrellas
- 414
- Forks
- 53
- Merge medio
- 1 d 5 h
- PR fusionados (30 d)
- 78
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 basecamp/hey-cli
-
TUI Calendar: Enter does nothing on a highlighted event (Day/Week), though the help bar shows "enter: open"Posiblemente ocupada @albertreig la tomó hace 42 días. AbiertoCLI Only
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
Los mantenedores suelen responder en 1 día
-
Bubble Up box is empty in the TUI and `hey box view`, but `hey bubble list` returns the emailsAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
Direct push to main detectedAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 1/100
Los mantenedores suelen responder en 1 día
Todos los issues de basecamp/hey-cli
Issues similares
-
automation models
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
bug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
mvanhorn/cli-printing-press#5146 ·
Los mantenedores suelen responder en 1 día
-
.jsonc files are skippedAbiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
alibaba/open-code-review#1800 ·
Los mantenedores suelen responder en 1 día
-
kind/engineering needs-triage pulumi/registry R2 S2 Task
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día