chore(status): minor code cleaning

This commit is contained in:
Steffen Jost 2022-03-03 16:58:28 +01:00
parent 7b8e566f65
commit 864c2f13ad

View File

@ -2,7 +2,7 @@ module Handler.Health where
import Import
import Handler.Utils
-- import Handler.Utils
import qualified Data.Aeson.Encode.Pretty as Aeson
import qualified Data.Text.Lazy.Builder as Builder
@ -106,7 +106,7 @@ getStatusR :: Handler Html
getStatusR = do
starttime <- getsYesod appStartTime
currtime <- liftIO getCurrentTime
ft <- formatTime' "%Y%m%d %H:%M:%S" currtime -- use me throughout or delete me (delete, since this Handler is for mechanised tests only)
-- ft <- formatTime' "%Y-%m-%d %H:%M:%S" currtime
withUrlRenderer
[hamlet|
$doctype 5
@ -116,8 +116,7 @@ getStatusR = do
<body>
<p>
Current Time <br>
#{show currtime} <br>
#{ft}
#{show currtime} <br>
<p>
Instance Start <br>
#{show starttime} #