Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upDate.fromString failed when tried to convert string that was obtained using toString on Date. #807
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Jan 14, 2017
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Jan 14, 2017
|
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Wildsoft
commented
Jan 14, 2017
|
IE 11 had the same issue |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Wildsoft
Jan 14, 2017
Here is a snippet of code that reproduce the issue:
addHistoryEntry : DestParty -> Date -> UserData -> UserData
addHistoryEntry destParty callDate userData =
let
dateStr = (toString callDate)
dateForVal = Date.fromString dateStr
dateStr2 = case dateForVal of
Ok _ -> dateStr
Err err -> "Got:"++ err
............................................................................................
Wildsoft
commented
Jan 14, 2017
|
Here is a snippet of code that reproduce the issue: |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Jan 15, 2017
Contributor
Can you try to properly format your example code in the last comment using a Markdown code block?
|
Can you try to properly format your example code in the last comment using a Markdown code block? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Wildsoft
Jan 15, 2017
Sure, I have recreate the issue with very small program. Its code is attached:
date_from_string.elm.txt
Wildsoft
commented
Jan 15, 2017
•
|
Sure, I have recreate the issue with very small program. Its code is attached: |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Jan 15, 2017
Contributor
Look at how your comment (also the new one) looks on GitHub. No formatting, unreadable.
|
Look at how your comment (also the new one) looks on GitHub. No formatting, unreadable. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Wildsoft
commented
Jan 15, 2017
|
Can you please look at attached file? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Jan 15, 2017
Contributor
Please open a new issue, with all relevant information in the first comment, in readable form. Our current conversation here will just make it more complicated to see what the problem is and to act on it.
|
Please open a new issue, with all relevant information in the first comment, in readable form. Our current conversation here will just make it more complicated to see what the problem is and to act on it. |
jvoigtlaender
closed this
Jan 15, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Wildsoft
commented
Jan 15, 2017
|
Done |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Jan 15, 2017
Contributor
@Wildsoft, please do take a look at https://github.com/elm-lang/core/issues/810#issue-200876297. I edited your comment there to put the code right there into it as a Markdown block (instead of a link only). This is how you should present examples like this in an issue if you want to make it easy for the maintainer to work with your issue (which you should want).
|
@Wildsoft, please do take a look at https://github.com/elm-lang/core/issues/810#issue-200876297. I edited your comment there to put the code right there into it as a Markdown block (instead of a link only). This is how you should present examples like this in an issue if you want to make it easy for the maintainer to work with your issue (which you should want). |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Wildsoft
commented
Jan 15, 2017
|
@jvoigtlaender , sure, thanks for your help and patience |
Wildsoft commentedJan 14, 2017
Error: Unable to parse '<Sat Jan 14 2017 17:06:24 GMT-0500 (Eastern Standard Time)>' as a date. Dates must be in the ISO 8601 format.
The same code worked well on Chrome but failed on Firefox (50.1.0 on Windows 8)