jweir / elm-iso8601

Elm library to parse and convert ISO8601 times and dates

Home Page:https://package.elm-lang.org/packages/jweir/elm-iso8601/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Date.toIsoString returning unexpected negative result

mordrax opened this issue · comments

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

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

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

I meant this for justinmimbs/date: justinmimbs/date#6