diff --git a/cookie.cabal b/cookie.cabal
--- a/cookie.cabal
+++ b/cookie.cabal
@@ -1,5 +1,5 @@
 name:            cookie
-version:         0.4.1.2
+version:         0.4.1.3
 license:         BSD3
 license-file:    LICENSE
 author:          Michael Snoyman <michael@snoyman.com>
@@ -37,7 +37,9 @@
                  , test-framework-hunit
                  , test-framework-quickcheck2
                  , text
-                 , time
+                 -- Bug in time 1.4.0, see:
+                 -- https://github.com/snoyberg/cookie/issues/9
+                 , time >= 1.4.0.2
 
 source-repository head
   type:     git
diff --git a/test/Spec.hs b/test/Spec.hs
--- a/test/Spec.hs
+++ b/test/Spec.hs
@@ -90,7 +90,10 @@
     testCase ("year " ++ show x) (y @=? year)
   where
     (year, _, _) = toGregorian day
-    Just (UTCTime day _) = setCookieExpires sc
+    day =
+        case setCookieExpires sc of
+            Just (UTCTime day _) -> day
+            Nothing -> error $ "setCookieExpires == Nothing for: " ++ show str
     sc = parseSetCookie str
     str = S8.pack $ concat
         [ "foo=bar; Expires=Mon, 29-Jul-"
