]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - ImplantFile.hs
Fixed two bugs
[Lucu.git] / ImplantFile.hs
index 26be80e73e7dcd109160dcfe68be812ff4c66af2..22fafeaa5acd35d413c827701265aead3a0d2349 100644 (file)
@@ -393,7 +393,7 @@ getMIMEType opts srcFile
 getLastModified :: FilePath -> IO UTCTime
 getLastModified "-"   = getCurrentTime
 getLastModified fpath = getFileStatus fpath
-                        >>= return . posixSecondsToUTCTime . toEnum . fromEnum . modificationTime
+                        >>= return . posixSecondsToUTCTime . fromRational . toRational . modificationTime
 
 
 getETag :: [CmdOpt] -> Lazy.ByteString -> IO String