Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

time: convert_time gives no warning when a fall-back wall time is ambiguous

Aperta
#5,196 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
66/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start with src/time/src/mcp_server_time/server.py, where convert_time attaches the time zone to today's date and the given HH:MM; read the existing handling for nonexistent spring-forward times and the prototype in #4781. Check how the implementation can detect a repeated wall time and communicate its ambiguity. Done means fall-back times are no longer presented as a single certain conversion, while ordinary times still work.

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

Descrizione

bug server-time v2
Problem

convert_time in src/time/src/mcp_server_time/server.py builds the source time by attaching the time zone to today's date and the given HH:MM, which always uses fold=0. On a DST fall-back day a repeated wall time (01:30 in America/New_York, for example) occurs at two instants, and the tool silently picks the earlier one. v2 already rejects nonexistent spring-forward times.

Expected

When the given time is ambiguous, the result says so, for example with a note or with both conversions, rather than presenting one answer as certain.

Prior work
  • #4781 by @Nimra3261

The PR(s) above targeted the pre-refactor code and are closed as part of the backlog triage in #4875; this issue is where the work continues, with the PR(s) as a prototype. Thank you to their authors.

Lingua principale
TypeScript
Stelle
91.6k
Fork
11.9k
Merge medio
6h 2m
PR unite (30g)
162

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 modelcontextprotocol/servers

Tutte le issue di modelcontextprotocol/servers

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.