Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

missing millis in "toISO8601" #30 #31

Merged
merged 1 commit into from
Apr 23, 2017

Conversation

witoldsz
Copy link

No description provided.

@@ -235,7 +235,7 @@ toFromISO8601 =
[ test "toISO8601 of epoch is correct" <|
\() ->
toISO8601 epoch
|> Expect.equal "1970-01-01T00:00:00Z"
|> Expect.equal "1970-01-01T00:00:00.000Z"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how date.toISOString() works in JS, so I decided not to cut the millis when zero.

@oldfartdeveloper
Copy link
Contributor

Thanks for the detailed testing! 👍

@oldfartdeveloper oldfartdeveloper merged commit ef06295 into elm-community:master Apr 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants