correction for old users
This commit is contained in:
parent
ddfa7957c4
commit
74d56b1295
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ getHomeR :: Handler Html
|
|||
getHomeR = do
|
||||
beverages <- runDB $ selectList [BeverageAmount !=. 0] [Desc BeverageIdent]
|
||||
time <- liftIO getCurrentTime
|
||||
secs <- return $ (R.read $ formatTime defaultTimeLocale "%s" time) - 8640000
|
||||
secs <- return $ (R.read $ formatTime defaultTimeLocale "%s" time) - 2592000
|
||||
users <- runDB $ selectList [UserTimestamp >=. secs] [Asc UserIdent]
|
||||
defaultLayout $ do
|
||||
$(widgetFile "home")
|
||||
|
|
Loading…
Reference in a new issue