@@ -1671,6 +1671,17 @@ instance FromJSONKey LocalTime where
1671 fromJSONKey = FromJSONKeyTextParser (Time.run Time.localTime)
1671 fromJSONKey = FromJSONKeyTextParser (Time.run Time.localTime)
1674+-- | Supported string formats:
1676+-- @YYYY-MM-DD HH:MM Z@
1677+-- @YYYY-MM-DD HH:MM:SS Z@
1678+-- @YYYY-MM-DD HH:MM:SS.SSS Z@
1680+-- The first space may instead be a @T@, and the second space is
1681+-- optional. The @Z@ represents UTC. The @Z@ may be replaced with a
1682+-- time zone offset of the form @+0000@ or @-08:00@, where the first
1683+-- two digits are hours, the @:@ is optional and the second two digits
1684+-- (also optional) are minutes.
1674instance FromJSON ZonedTime where
1685instance FromJSON ZonedTime where
1675 parseJSON = withText "ZonedTime" (Time.run Time.zonedTime)
1686 parseJSON = withText "ZonedTime" (Time.run Time.zonedTime)