forked from GitHub/gf-core
change date/time formating
This commit is contained in:
@@ -9,7 +9,6 @@ import Language.Haskell.TH.Syntax
|
|||||||
import Control.Monad.IO.Class
|
import Control.Monad.IO.Class
|
||||||
import Control.Exception
|
import Control.Exception
|
||||||
import Data.Time
|
import Data.Time
|
||||||
import Data.Time.Format.ISO8601
|
|
||||||
import System.Process
|
import System.Process
|
||||||
|
|
||||||
-- Use Template Haskell to get compile time
|
-- Use Template Haskell to get compile time
|
||||||
@@ -17,7 +16,7 @@ buildTime :: String
|
|||||||
buildTime = $(do
|
buildTime = $(do
|
||||||
timeZone <- liftIO getCurrentTimeZone
|
timeZone <- liftIO getCurrentTimeZone
|
||||||
time <- liftIO $ utcToLocalTime timeZone <$> getCurrentTime
|
time <- liftIO $ utcToLocalTime timeZone <$> getCurrentTime
|
||||||
return $ LitE $ StringL $ iso8601Show time )
|
return $ LitE $ StringL $ formatTime defaultTimeLocale "%F %T" time )
|
||||||
|
|
||||||
-- Use Template Haskell to get current Git information
|
-- Use Template Haskell to get current Git information
|
||||||
gitInfo :: String
|
gitInfo :: String
|
||||||
|
|||||||
Reference in New Issue
Block a user