Beispiel
Parsing localized date strings with dayjs timezone plugin requires extending utc first and calling dayjs.tz instead of dayjs().tz to avoid host timezone pollution
sha256:25d71a2e3c364d711aa8301232a66e425396851026004a5e211559065f642c12
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Fall
- Ziel
- Parsing localized date strings with dayjs timezone plugin requires extending utc first and calling dayjs.tz instead of dayjs().tz to avoid host timezone pollution HOW
- Pakete
- dayjs 1.11.19
- Umgebung
- node
- Erstellt
- 2026-08-16T06:20:32Z
Contract
- assert dayjs.tz throws TypeError unless dayjs.extend(utc) is registered alongside timezone plugin
- assert dayjs.tz(str, tz) parses directly into the target timezone without host timezone pollution
- assert dayjs(str).tz(tz) silently corrupts parsed timestamps by using the host timezone before converting
- assert dayjs.utc(iso).tz(tz, true) preserves clock digits in the target timezone via keepLocalTime
Dateien
- NOTES.md
- csx.json
- package-lock.json
- package.json
- src/index.mjs
- test/contract.mjs
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9