on master help sign in
Merge pull request #273 from lpsmith/zonedtime-tweaks

Encode ZonedTime into an unambiguously ISO 8601 compliant syntax

commitdbbf824aea1b0c084bdd142ff9b1f3dd06c6d7b8 authorBryan O'Sullivan <bos@serpentine.com> dateWed 22 Jul 2015, 13:35 (11 years ago) parent54f93156406de8
1 file changed+1−1
Data/Aeson/Encode/Builder.hs+1−1
Data/Aeson/Encode/Builder.hs+1−1
@@ -208,7 +208,7 @@ timeOfDay64 (TOD h m s0)
208208timeZone :: TimeZone -> Builder
209209timeZone (TimeZone off _ _)
210210 | off == 0 = B.char7 'Z'
211− | otherwise = BP.primBounded (ascii5 (s,(hh,(hl,(mh,ml))))) ()
211+ | otherwise = BP.primBounded (ascii6 (s,(hh,(hl,(':',(mh,ml)))))) ()
212212 where !s = if off < 0 then '-' else '+'
213213 !(T hh hl) = twoDigits h
214214 !(T mh ml) = twoDigits m