-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible regression in time 1.8.0.1 / ghc 8.2 rc2 when converting UTCTime to a string #74
Comments
It looks like this regressed with 85904c5. |
Ta for digging that up - my reading of the commit - particularly the test |
Yes, this is a bug. The documentation for %Q says "For a whole number of seconds, %Q produces the empty string." To always get a decimal point (the current wrong behaviour of %Q), one should use ".%-q". |
Fixed in c29513e. |
I will do a point release for this. |
Cheers. |
In testing out one of my packages with ghc 8.2 rc2, I found a failing test which I've boiled down to the following: is this a bug in time, or in ghc, or allowed behavior?
The problem is that I am trying to round-trip the string '1970-01-01T00:00:00Z' to UTCTime and then back to a string, and with time 1.8.0.1 this returns '1970-01-01T00:00:00.Z' - note the decimal point.
Details below:
I see the following on a ubuntu laptop
a) ghc 8.0.2, time 1.6.0.1
b) ghc 8.2 rc2, time 1.8.0.1
The text was updated successfully, but these errors were encountered: