leading zero date format fixed

This commit is contained in:
SJost 2018-06-21 10:27:09 +02:00
parent 710ace42bf
commit 67927742bb
3 changed files with 2 additions and 4 deletions

View File

@ -221,7 +221,7 @@ getSShowR tid csh shn = do
{ dbtSQLQuery = fileData
, dbtColonnade = colonnadeFiles
, dbtAttrs = tableDefault
-- , dbtFilter = Map.empty -- TODO: Just for Testing. Gregor needs to explain what is needed here.
, dbtFilter = Map.empty
, dbtIdent = "files" :: Text
-- TODO: Add column for and visibility date
, dbtSorting = [ ( "type"

View File

@ -366,7 +366,7 @@ utcTimeField = Field
where
fieldTimeFormat :: String
--fieldTimeFormat = "%e.%m.%y %k:%M"
fieldTimeFormat = "%Y-%m-%eT%H:%M"
fieldTimeFormat = "%Y-%m-%dT%H:%M"
readTime :: Text -> Either FormMessage UTCTime
readTime t =

View File

@ -99,8 +99,6 @@ instance DisplayAble Text where
instance DisplayAble String where
display = pack
instance DisplayAble a => DisplayAble (Maybe a) where
display Nothing = ""
display (Just x) = display x