Redmine "Logged" Suggestion Chip Shows One Day Early West of UTC
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 88/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
Inizia da src/features/tickets/redmine/suggestions.ts e analizza la gestione da parte di reasonLabel del valore lastTimeLoggedAt contenente solo la data. Esegui il test unitario esistente, quindi aggiungi la copertura usando il literal '2026-09-24' con TZ=America/New_York e TZ=UTC. Il lavoro è completato quando il tempo registrato oggi viene etichettato come "Logged today" in entrambi i fusi orari.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Overview
The "Logged" reason chip on Redmine search suggestions shows a day too early for anyone west of UTC. Time logged this morning reads "Logged yesterday", and yesterday's reads "Logged 2 days ago". Found in the review of #571; it is the one item holding that PR's merge.
Current State
lastTimeLoggedAtis Redmine'sspent_on, passed through as a bareYYYY-MM-DDwith no time zone.reasonLabelinsrc/features/tickets/redmine/suggestions.tsreads it withDate.parse('2026-09-24'), which is UTC midnight, then compares calendar days in local time.- West of UTC those land on different days:
TZ=UTC,spent_on2026-09-25 → "today" ✓TZ=America/New_York,spent_on2026-09-25 → "yesterday" ✗TZ=Asia/Kolkata,spent_on2026-09-25 → "today" ✓
- The unit test passes because it feeds a full local timestamp, not the date-only shape the server sends.
Proposed Changes
- Read
spent_onas a calendar date- Parse the
YYYY-MM-DDparts into a local date (e.g. aloggedDay()helper) instead ofDate.parse.
- Parse the
- Test the real shape
- Add a unit test built from a literal
'2026-09-24'. - Run it under
TZ=America/New_Yorkso it fails before the fix and passes after.
- Add a unit test built from a literal
Acceptance Criteria
- Time logged today reads "Logged today" in every time zone
- A unit test built from a date-only string passes under
TZ=America/New_YorkandTZ=UTC
Out of Scope (for Now)
- Other date displays in the app
- Changing what the server sends for
lastTimeLoggedAt
Fix lands in #571.
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 4
- Merge medio
- 1g 16h
- PR unite (30g)
- 47
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mieweb/timehuddle
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
mieweb/timehuddle#754 ·
I maintainer di solito rispondono entro 1 giorno
-
Release notesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
mieweb/timehuddle#634 ·
I maintainer di solito rispondono entro 1 giorno
-
Minor UI Updates/FixesForse di nuovo libera @Dharp02 l’ha presa 56 giorni fa e non c’è nessuna pull request aperta. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
mieweb/timehuddle#519 · 3 commenti · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Make the Huddle Ticket Button Open the # Ticket ListForse già presa @SarkarShubhdeep l’ha presa oggi. Aperta
mieweb/timehuddle#917 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Show Time Worked on Each Ticket and What Was Sent to RedmineForse già presa @SarkarShubhdeep l’ha presa oggi. Aperta
mieweb/timehuddle#916 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di mieweb/timehuddle
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
simstudioai/sim#10710 ·
I maintainer di solito rispondono entro 1 giorno
-
bug:new
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
callstackincubator/simlock#2088 ·
I maintainer di solito rispondono entro 1 giorno
-
Make the HTTP server's keep-alive and headers timeouts configurableForse già presa @mattgodbolt l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
compiler-explorer/compiler-explorer#9902 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno