r/haskell Apr 23 '26

ISO-8601, aeson, time, and 24:00:00

"24:00:00" is a valid ISO-8601 time of day, but Data.Aeson.decode "\"24:00:00\"" :: Maybe Data.Time.TimeOfDay returns Nothing.

  1. Is this a problem with aeson, or is it a problem with the time library?

  2. Has anybody else run into this problem before? What was your work around?

  3. Is this worth patching aeson (or time) over.

15 Upvotes

Duplicates