[Import/Export] Compose the supplied New York timezone component

Aperta
#833 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 11 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

Start by checking whether prerequisite #810 has produced the vetted New York timezone component, since the issue says not to invent it. Once it exists, add the BEGIN/END VTIMEZONE string with STANDARD and DAYLIGHT subcomponents in the new src/lib/ics/timezone.ts, using src/lib/domain/section.ts as the reference for the surrounding code. Done when src/lib/ics/timezone.test.ts passes, and pnpm lint and pnpm typecheck are clean.

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

Descrizione

import-export

What to build

Include the approved New York timezone description in exported calendars. This tells calendar apps when the local clock changes and keeps repeating classes at the correct time.

Files

  • src/lib/ics/timezone.ts (new file)
  • Starting example: src/lib/domain/section.ts
    Code to add or extend: newYorkTimezone(): string.

Steps

  1. Wait for the timezone prerequisite’s vetted component, then encode it as a CRLF-joined string with TZID America/New_York.
  2. STANDARD uses offsets -0400→-0500 and first Sunday of November; DAYLIGHT uses -0500→-0400 and second Sunday of March. Preserve the officer-reviewed DTSTART/reference years.
  3. Test presence/order of BEGIN/END VTIMEZONE and both subcomponents; do not fabricate a missing vetted component.

Example

Component has exactly one STANDARD and one DAYLIGHT; no computer timezone dependency.

Check it works

In src/lib/ics/timezone.test.ts, check the example above and the failure or limit described in the steps. Run pnpm test -- src/lib/ics/timezone.test.ts, pnpm lint and pnpm typecheck.

Before starting

  • #810 — Record the calendar timezone conversion policy

References

Assign yourself before starting, or comment to claim the issue. Project setup.

Lingua principale
TypeScript
Stelle
19
Fork
94
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 DevDogsUGA/DogDays

Tutte le issue di DevDogsUGA/DogDays

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.