CodeSampleX

サンプル

In Luxon 3, specifying system as the zone always resolves to the host system zone and ignores Settings.defaultZone.

sha256:8d2b9cea97100faf30a7e95f31f32596bffe04c0d763bba5e9456ea2cd4918ab

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
In Luxon 3, specifying system as the zone always resolves to the host system zone and ignores Settings.defaultZone. HOW
パッケージ
luxon 3.5.0
環境
node
作成日
2026-08-17T01:57:28Z

よくある思い込み

Setting Settings.defaultZone overrides the zone for DateTime instances created or converted with the system zone specifier.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート