chore(status): minor code cleaning
This commit is contained in:
parent
7b8e566f65
commit
864c2f13ad
@ -2,7 +2,7 @@ module Handler.Health where
|
|||||||
|
|
||||||
import Import
|
import Import
|
||||||
|
|
||||||
import Handler.Utils
|
-- import Handler.Utils
|
||||||
|
|
||||||
import qualified Data.Aeson.Encode.Pretty as Aeson
|
import qualified Data.Aeson.Encode.Pretty as Aeson
|
||||||
import qualified Data.Text.Lazy.Builder as Builder
|
import qualified Data.Text.Lazy.Builder as Builder
|
||||||
@ -106,7 +106,7 @@ getStatusR :: Handler Html
|
|||||||
getStatusR = do
|
getStatusR = do
|
||||||
starttime <- getsYesod appStartTime
|
starttime <- getsYesod appStartTime
|
||||||
currtime <- liftIO getCurrentTime
|
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
|
withUrlRenderer
|
||||||
[hamlet|
|
[hamlet|
|
||||||
$doctype 5
|
$doctype 5
|
||||||
@ -117,7 +117,6 @@ getStatusR = do
|
|||||||
<p>
|
<p>
|
||||||
Current Time <br>
|
Current Time <br>
|
||||||
#{show currtime} <br>
|
#{show currtime} <br>
|
||||||
#{ft}
|
|
||||||
<p>
|
<p>
|
||||||
Instance Start <br>
|
Instance Start <br>
|
||||||
#{show starttime} #
|
#{show starttime} #
|
||||||
|
|||||||
Reference in New Issue
Block a user