diff --git a/htdocs/auth/lib.php b/htdocs/auth/lib.php index 0ab0b95..a0765d4 100644 --- a/htdocs/auth/lib.php +++ b/htdocs/auth/lib.php @@ -1412,7 +1412,8 @@ function ensure_user_account_is_active($user=null) { // Check if the user's account has been suspended if ($user->suspendedcusr) { - $suspendedctime = strftime(get_string('strftimedaydate'), $user->suspendedctime); + $suspendedctime = strftime(get_string('strftimedaydatetime'), strtotime($user->suspendedctime)); + //$suspendedctime = strftime(get_string('strftimedaydatetime'), $user->get('suspendedctime')); $suspendedreason = $user->suspendedreason; if ($dologout) { $user->logout();