Support time 1.5

This commit is contained in:
Michael Snoyman 2014-11-25 07:17:36 +02:00
parent c9d934b920
commit a65349612e
3 changed files with 23 additions and 5 deletions

View File

@ -1,3 +1,4 @@
{-# LANGUAGE CPP #-}
module Yesod.Core.Internal.Util
( putTime
, getTime
@ -11,7 +12,12 @@ import Data.Serialize (Get, Put, Serialize (..))
import qualified Data.Text as T
import Data.Time (Day (ModifiedJulianDay, toModifiedJulianDay),
DiffTime, UTCTime (..), formatTime)
#if MIN_VERSION_time(1,5,0)
import Data.Time (defaultTimeLocale)
#else
import System.Locale (defaultTimeLocale)
#endif
putTime :: UTCTime -> Put
putTime (UTCTime d t) =

View File

@ -1,7 +1,19 @@
__1.4.4.2__ `neverExpires` uses dates one year in the future (instead of in 2037).
## 1.4.4.5
__1.4.4.1__ Improvements to etag/if-none-match support #868 #869
Support time 1.5
__1.4.4__ Add the `notModified` and `setEtag` functions.
## 1.4.4.2
__1.4.3__ Switch to mwc-random for token generation.
`neverExpires` uses dates one year in the future (instead of in 2037).
## 1.4.4.1
Improvements to etag/if-none-match support #868 #869
## 1.4.4
Add the `notModified` and `setEtag` functions.
## 1.4.3
Switch to mwc-random for token generation.

View File

@ -1,5 +1,5 @@
name: yesod-core
version: 1.4.4.4
version: 1.4.4.5
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>