jweir / elm-iso8601

Elm library to parse and convert ISO8601 times and dates
https://package.elm-lang.org/packages/jweir/elm-iso8601/latest
MIT License
15 stars 7 forks source link

Date.toIsoString returning unexpected negative result #10

Closed mordrax closed 6 years ago

mordrax commented 6 years ago

in repl:

> Date.fromCalendarDate 0 Date.Jan 1
RD -364 : Date.Date

> Date.fromCalendarDate 0 Date.Jan 1 |> Date.toIsoString
"0001-01--364" : String

-- it should be as per the input day
"0001-01-1" : String
jweir commented 6 years ago

Which Date package are you using? And does this have any bearing on this ISO8601 package?

mordrax commented 6 years ago

🤦‍♂️ ... I'm sorry... wrong repo!

I meant this for justinmimbs/date: https://github.com/justinmimbs/date/issues/6