iso8601-time 0.1.0 → 0.1.1
raw patch · 2 files changed
+3/−3 lines, 2 files
Files
- iso8601-time.cabal +1/−1
- src/Data/Time/ISO8601.hs +2/−2
iso8601-time.cabal view
@@ -1,5 +1,5 @@ name: iso8601-time-version: 0.1.0+version: 0.1.1 license: MIT copyright: 2013 Niklas Hambüchen <mail@nh2.me> author: Niklas Hambüchen <mail@nh2.me>
src/Data/Time/ISO8601.hs view
@@ -26,8 +26,8 @@ -- | Pads an ISO 8601 date with trailing zeros, but lacking the trailing Z. formatPadded :: UTCTime -> String formatPadded t- | length str == 19 = str ++ ".000000000"- | otherwise = str ++ "000000000"+ | length str == 19 = str ++ ".000000000000"+ | otherwise = str ++ "000000000000" where str = formatTime defaultTimeLocale "%FT%T%Q" t