elm-bridge icon indicating copy to clipboard operation
elm-bridge copied to clipboard

Add parser for decoding UTC datatypes

Open bartavelle opened this issue 3 years ago • 1 comments

It requires the elm-community/json-extra package for now.

bartavelle avatar May 08 '22 14:05 bartavelle

It would be great if:

  • it would be imported by json-helpers so that using this library only requires adding one dependency
  • it added the decoder
  • would import Posix
  • would use https://package.elm-lang.org/packages/rtfeldman/elm-iso8601-date-strings/latest/Iso8601 as it's more minimal

Our current workaround is:

      "import Time exposing (Posix)",
      "import Iso8601",
      "jsonDecPosix : Json.Decode.Decoder Posix",
      "jsonDecPosix = Iso8601.decoder",
      "",
      "jsonEncPosix : Posix -> Value",
      "jsonEncPosix = Iso8601.encode",

domenkozar avatar Jan 04 '24 14:01 domenkozar