Ticket #2671 (closed bug: fixed)
Data.Time.Clock parseTime's %y parses "08" as 1908
| Reported by: | simonmic | Owned by: | ashley@… |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.2.1 |
| Component: | libraries (other) | Version: | 6.8.2 |
| Keywords: | time | Cc: | simon@… |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description (last modified by igloo) (diff)
$ ghci --version The Glorious Glasgow Haskell Compilation System, version 6.8.2 $ ghci GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. Prelude> Prelude> :m + System.Locale Data.Time.Clock Data.Time.Format Prelude Data.Time.Format Data.Time.Clock System.Locale> parseTime defaultTimeLocale "%y" "08" :: Maybe UTCTime Loading package old-locale-1.0.0.0 ... linking ... done. Loading package time-1.1.2.0 ... linking ... done. Just 1908-01-01 00:00:00 UTC
Change History
Note: See
TracTickets for help on using
tickets.
