File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1671,6 +1671,17 @@ instance FromJSONKey LocalTime where
1671
1671
fromJSONKey = FromJSONKeyTextParser (Time. run Time. localTime)
1672
1672
1673
1673
1674
+ -- | Supported string formats:
1675
+ --
1676
+ -- @YYYY-MM-DD HH:MM Z@
1677
+ -- @YYYY-MM-DD HH:MM:SS Z@
1678
+ -- @YYYY-MM-DD HH:MM:SS.SSS Z@
1679
+ --
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.
1674
1685
instance FromJSON ZonedTime where
1675
1686
parseJSON = withText " ZonedTime" (Time. run Time. zonedTime)
1676
1687
You can’t perform that action at this time.
0 commit comments