We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ac1bf1 + be97d1b commit 3587ff1Copy full SHA for 3587ff1
src/Iso8601.elm
@@ -318,6 +318,7 @@ iso8601 =
318
|. symbol ":"
319
|= paddedInt 2
320
, paddedInt 2
321
+ , succeed 0
322
]
323
-- ss
324
|= oneOf
tests/Example.elm
@@ -95,6 +95,10 @@ knownValues =
95
\_ ->
96
Iso8601.toTime "2012-11-12T00:00:00+0130546"
97
|> Expect.err
98
+ , test "toTime supports yyyy-mm-ddThh:mm format" <|
99
+ \_ ->
100
+ Iso8601.toTime "2019-05-30T06:30"
101
+ |> Expect.equal (Ok (Time.millisToPosix 1559197800000))
102
, test "decoder returns clearer error for dead ends" <|
103
104
case decodeString Iso8601.decoder "2010-09-31T14:29:25.01235Z" of
0 commit comments