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

  * owner:  => ashley@…


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" :: 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
 }}}

--

Comment:

 Ashley, any chance you could take a look at this please?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2671#comment:7>
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