]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/Wiki/Interpreter/PageList.hs
Use time-http
[Rakka.git] / Rakka / Wiki / Interpreter / PageList.hs
index fd4d364ebde2ad6af3c7ae37f9bdfb72c935ad1d..2fe9d305fc46509926a60aa6b1ddff9d22a5c403 100644 (file)
@@ -6,7 +6,7 @@ module Rakka.Wiki.Interpreter.PageList
 import           Control.Monad
 import           Data.Maybe
 import           Data.Time
-import           Network.HTTP.Lucu.RFC1123DateTime
+import qualified Data.Time.RFC1123 as RFC1123
 import           Network.URI
 import           Rakka.Storage
 import           Rakka.SystemConfig
@@ -85,14 +85,13 @@ recentUpdatesInterp
       mkListItem :: Bool -> HitPage -> IO ListItem
       mkListItem showSummary page
           = do lastMod <- utcToLocalZonedTime (hpLastMod page)
-               return ( [ Inline ( PageLink {
-                                     linkPage     = Just (hpPageName page)
-                                   , linkFragment = Nothing
-                                   , linkText     = Nothing
-                                   }
-                                 )
+               return ( [ Inline PageLink {
+                                       linkPage     = Just (hpPageName page)
+                                     , linkFragment = Nothing
+                                     , linkText     = Nothing
+                                     }
                         , Block ( Div [("class", "date")]
-                                  [Inline (Text (formatRFC1123DateTime lastMod))]
+                                  [Inline (Text (RFC1123.format lastMod))]
                                 )
                         ]
                         ++