on master help sign in
remove parseDate function
commit62a969dea3f9d678748be6266233d88e88ba6a38 authorGreg Weber <greg@gregweber.info> dateThu 30 Jun 2011, 18:51 (15 years ago) parent1ec282f
1 file changed−6
Network/Wai/Application/Static.hs−6
Network/Wai/Application/Static.hs−6
@@ -372,12 +372,6 @@ data File = File
372372 , fileGetModified :: Maybe EpochTime
373373 }
374374
375−parseModifiedDate :: ByteString -> Maybe EpochTime
376−parseModifiedDate =
377− fmap (fromInteger . round . utcTimeToPOSIXSeconds) . parseTime defaultTimeLocale format . S8.unpack
378− where
379− format = "%a, %d %b %Y %X %Z"
380−
381375data StaticSettings = StaticSettings
382376 { ssFolder :: Pieces -> IO FileLookup
383377 , ssMkRedirect :: Pieces -> ByteString -> ByteString