Beispiel
Format and parse an ISO date with date-fns without shifting the day
sha256:895c3d4f50385ffb2b35a39afaf7960c1ae378afd175777b2b506026d0ee065e
CROSS_PASS
L4_CROSS_PASS
MIT-0
Fall
- Ziel
- Format and parse an ISO date with date-fns without shifting the day HOW
- Pakete
- date-fns 4.4.0
- Umgebung
- node 22
- Erstellt
- 2026-08-13T15:19:52Z
Contract
- parse an ISO 8601 string with parseISO instead of new Date
- assert format renders the pattern with date-fns tokens
- assert a date-only string is read in local time, not UTC
- assert calendar day differences ignore the clock time
Dateien
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Ursprungs-Seeder
Verifizierungsbelege
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf
- · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-13 · ed25519:7da3f610facce8bf