From 8e09483ffa88a44b8e2f2463081970fceb551e40 Mon Sep 17 00:00:00 2001 From: mjansen Date: Fri, 15 Dec 2023 09:30:01 +0100 Subject: [PATCH] User: Replace usages of `strftime` with `date` --- .../ILIAS/User/classes/Cron/class.ilUserCronCheckAccounts.php | 2 +- components/ILIAS/User/classes/class.ilObjUser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/ILIAS/User/classes/Cron/class.ilUserCronCheckAccounts.php b/components/ILIAS/User/classes/Cron/class.ilUserCronCheckAccounts.php index 99c2af1530a1..13ffb2a53fde 100755 --- a/components/ILIAS/User/classes/Cron/class.ilUserCronCheckAccounts.php +++ b/components/ILIAS/User/classes/Cron/class.ilUserCronCheckAccounts.php @@ -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); diff --git a/components/ILIAS/User/classes/class.ilObjUser.php b/components/ILIAS/User/classes/class.ilObjUser.php index 05dcfa21ba8e..b8a5070e233b 100755 --- a/components/ILIAS/User/classes/class.ilObjUser.php +++ b/components/ILIAS/User/classes/class.ilObjUser.php @@ -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: