Wed Nov 15 14:08:18 PST 2006 [EMAIL PROTECTED]
* Handle 'c' also in formatTime for ZonedTime, to get %Z filled in for
ZonedTime and UTCTime.
Before, formatTime "%c" did not include the time zone even when applied to
ZonedTime or UTCTime,
since "%c" was handled by the FormatTime LocalTime instance:
> fmap (formatTime System.Locale.defaultTimeLocale "%c") getZonedTime
"Sat Nov 11 19:12:45.395568 2006"
> fmap (formatTime System.Locale.defaultTimeLocale "%c") getCurrentTime
"Sat Nov 11 18:13:52.010944 2006"
Now it is correct:
> fmap (formatTime System.Locale.defaultTimeLocale "%c") getZonedTime
"Wed Nov 15 23:08:43.987526 CET 2006"
> fmap (formatTime System.Locale.defaultTimeLocale "%c") getCurrentTime
"Wed Nov 15 22:08:51.530603 UTC 2006"
M ./Data/Time/LocalTime/Format.hs +1
_______________________________________________
Cvs-libraries mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-libraries