#2671: Data.Time.Clock parseTime's %y parses "08" as 1908
------------------------------+---------------------------------------------
 Reporter:  simonmic          |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Milestone:                  
Component:  libraries/base    |        Version:  6.8.2           
 Severity:  normal            |     Resolution:                  
 Keywords:  time              |     Difficulty:  Unknown         
 Testcase:                    |   Architecture:  Unknown/Multiple
       Os:  Unknown/Multiple  |  
------------------------------+---------------------------------------------
Changes (by igloo):

  * difficulty:  => Unknown

Old description:

> $ 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" :: Ma$
> 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

New description:

 {{{
 $ 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" :: Ma$
 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
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2671#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to