[BUG] Your Commits date picker can block today’s date before UTC midnight

Aperta Adatta ai principianti
#4,067 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
nextjs, react, typescript

Direzione di ricerca

Trova il Dashboard → Your Commits → Custom date picker e il test del grafico menzionato nel rapporto. Controlla come vengono calcolate la data massima e la data finale predefinita quando il selettore si apre per la prima volta, poi confronta la data locale del browser con la data UTC. Il lavoro è completato quando è possibile selezionare il 31 maggio e questo è la data finale predefinita nello scenario Asia/Kolkata descritto, e il test del grafico passa.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug needs-triage
What happened?

The Your Commits date picker uses the UTC date to decide which dates are allowed. When it’s already the next day in my time zone, the picker still treats today as a future date.

Steps to reproduce

In a local test, set the browser time zone to Asia/Kolkata and the clock to May 31, 2026 at 1:30 a.m. local time. It’s still May 30 in UTC.

Open Dashboard → Your Commits → Custom.

Try selecting May 31 as the start date and end date.

Where is it?

Dashboard overview

Where did you see it?

Local development

Browser and device

No response

Screenshots, console errors or logs

The picker caps both fields at May 30 and uses May 30 as the default end date. It should allow May 31 and use it as the default end date.

Reproduced in a local chart test on commit 636363b. The test passes when the picker uses the browser’s local date.

Related to #4066. This bug occurs when the picker first opens, before any date range has been applied. The UTC date cap prevents selecting the current local date.

Want to fix it?
  • I'd like to work on this. A maintainer will assign you; please don't start before that.
Lingua principale
TypeScript
Stelle
246
Fork
436
Merge medio
9h 33m
PR unite (30g)
213

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Priyanshu-byte-coder/devtrack

Tutte le issue di Priyanshu-byte-coder/devtrack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.