Sample
intl 0.20.2: Format dates in a non-English locale with intl, and parse a date without silently accepting an invalid one
Verified sample for pub intl 0.20.2: Format dates in a non-English locale with intl, and parse a date without silently accepting an invalid one. The contract…
sha256:8fe52af493a2d1841cd2ef52e8f16c5416206f317519c42f900e95b45dbac19d
This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured.
How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people.
MIT-0
Execution evidence
The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.
- Evidence basis
- Signed contract pass
- Verification receipts
- 2
- Signing keys that built it
- 2
Declared environment
dart 3 linux x64 dart 3 dart pub
Verification-run environments
| Environment | Contract | Stages | Run |
|---|---|---|---|
| dart 3 · linux alpine/x64 · docker ed25519:a2ec939a4c60e243 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pub@1 |
2026-08-14 |
| dart 3 · linux debian/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · pub@1 |
2026-08-17 |
Case
HOW- Goal
- Format dates in a non-English locale with intl, and parse a date without silently accepting an invalid one
- Packages
- Symbols
-
- DateFormat
- initializeDateFormatting
- NumberFormat
- DateFormat.parseStrict
- Environment
- dart 3
- Created
- 2026-08-14T06:07:43Z
Contract
- assert a non-default locale throws before initialization, catchable only by message because the exception type is not exported
- assert NumberFormat needs no initialization for the same locale
- assert the locale formats after initializeDateFormatting
- assert parse rolls an impossible date over while parseStrict reports it
Files
- csx.json
- lib/dates.dart
- pubspec.lock
- pubspec.yaml
- test/contract_test.dart