[GHC] #9150: libraries/time: parseTime barfs on leading space in format string
GHC
ghc-devs at haskell.org
Mon Aug 18 09:09:14 UTC 2014
#9150: libraries/time: parseTime barfs on leading space in format string
-------------------------------------+-------------------------------------
Reporter: mjo | Owner: Ashley Yakeley
Type: bug | Status: closed
Priority: normal | Milestone:
Component: libraries | Version: 7.8.2
(other) | Keywords:
Resolution: fixed | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: Incorrect | Related Tickets:
result at runtime |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Changes (by Ashley Yakeley):
* status: new => closed
* resolution: => fixed
Comment:
Fixed in HEAD for time-1.5.
{{{
Prelude Data.Time> parseTime defaultTimeLocale "%Q " " " :: Maybe
LocalTime
Just 1970-01-01 00:00:00
Prelude Data.Time> parseTime defaultTimeLocale "%k" " 8" :: Maybe
LocalTime
Just 1970-01-01 08:00:00
Prelude Data.Time> parseTime defaultTimeLocale "%M " "15 " :: Maybe
UTCTime
Just 1970-01-01 00:15:00 UTC
Prelude Data.Time> parseTime defaultTimeLocale " %M" " 15" :: Maybe
UTCTime
Just 1970-01-01 00:15:00 UTC
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9150#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list