Skip to content

Commit

Permalink
User: Replace usages of strftime with date
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay authored and kergomard committed Dec 15, 2023
1 parent 9bd5e49 commit 8e09483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function run(): ilCronJobResult
$lng->txt('account_expires_body'),
$login,
ILIAS_HTTP_PATH,
strftime('%Y-%m-%d %R', $expires)
date('Y-m-d H:i', $expires)
);

$body .= "\n\n" . ilMail::_getAutoGeneratedMessageString($lng);
Expand Down
2 changes: 1 addition & 1 deletion components/ILIAS/User/classes/class.ilObjUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2233,7 +2233,7 @@ public static function _getAllUserData(
break;
case 4:
$session_data = ilSession::get('user_filter_data');
$date = strftime('%Y-%m-%d %H:%I:%S', mktime(0, 0, 0, $session_data['m'], $session_data['d'], $session_data['y']));
$date = date('Y-m-d H:i:s', mktime(0, 0, 0, $session_data['m'], $session_data['d'], $session_data['y']));
$q .= ' AND last_login < ' . $ilDB->quote($date, 'timestamp');
break;
case 5:
Expand Down

0 comments on commit 8e09483

Please sign in to comment.