diff --git a/public/include/pages/admin/dashboard.inc.php b/public/include/pages/admin/dashboard.inc.php index 85e7f35f..5ca12b11 100644 --- a/public/include/pages/admin/dashboard.inc.php +++ b/public/include/pages/admin/dashboard.inc.php @@ -48,11 +48,11 @@ $smarty->assign('USER_INFO', $aUserInfo); // Fetch login information $aLoginInfo = array( - '24hours' => $user->getCountFiltered('last_login', time() - 3600, 'i', '>='), - '7days' => $user->getCountFiltered('last_login', (time() - (3600 * 7)), 'i', '>='), - '1month' => $user->getCountFiltered('last_login', (time() - (3600 * 7 * 4)), 'i', '>='), - '6month' => $user->getCountFiltered('last_login', (time() - (3600 * 7 * 4 * 6)), 'i', '>='), - '1year' => $user->getCountFiltered('last_login', (time() - (3600 * 365)), 'i', '>=') + '24hours' => $user->getCountFiltered('last_login', time() - 86400, 'i', '>='), + '7days' => $user->getCountFiltered('last_login', (time() - (86400 * 7)), 'i', '>='), + '1month' => $user->getCountFiltered('last_login', (time() - (86400 * 7 * 4)), 'i', '>='), + '6month' => $user->getCountFiltered('last_login', (time() - (86400 * 7 * 4 * 6)), 'i', '>='), + '1year' => $user->getCountFiltered('last_login', (time() - (86400 * 365)), 'i', '>=') ); $smarty->assign('USER_LOGINS', $aLoginInfo);