CodeSampleX

Sample

Show that DateTime.local treats a first object argument as options rather than calendar units and requires positional date components.

sha256:10f99ac67c186a7b35b30645c13de8d8089833efb1b4792bddeebae8b4818817

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Show that DateTime.local treats a first object argument as options rather than calendar units and requires positional date components. HOW
Packages
luxon 3.7.2
Environment
node
Created
2026-08-17T03:17:27Z

Commonly assumed

A caller can create a local calendar date with `DateTime.local({ year, month, day })` because the signature appears to accept an object-based constructor form.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts