[GHC] #2474: II belive that in ISO8601 the date and time should be
separated by a 'T', not a space
GHC
trac at galois.com
Wed Jul 30 18:53:29 EDT 2008
#2474: II belive that in ISO8601 the date and time should be separated by a 'T',
not a space
-------------------------------+--------------------------------------------
Reporter: MagnusTherning | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.8.3 | Severity: normal
Keywords: | Testcase:
Architecture: Unknown | Os: Unknown
-------------------------------+--------------------------------------------
Based on
http://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations
I believe the implementation ought to be changed to
{{{
iso8601DateFormat :: Maybe String -> String
iso8601DateFormat timeFmt =
"%Y-%m-%d" ++ case timeFmt of
Nothing -> ""
Just fmt -> 'T' : fmt
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2474>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list