Fix PHP 8.1 errors in a couple of PHP scripts in /ops

This commit is contained in:
David Anderson 2022-06-12 00:46:44 -07:00
parent 0053e0e9de
commit 5fae50505a
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ if (!isset($FILE_LIST)) {
exit;
}
$date = strftime('%Y-%m-%d %H:%M %Z');
$date = date(DATE_RFC2822);
$header = <<<HDR
# PROJECT translation
# Copyright (C) PROJECT

View File

@ -398,7 +398,7 @@ function delete_team_id_range($id1, $id2) {
}
}
echo "Starting: ".strftime('%Y-%m-%d %H:%M %Z')."\n";
echo "Starting: ".date(DATE_RFC2822)."\n";
// get settings first
//
@ -461,6 +461,6 @@ for ($i=1; $i<$argc; $i++) {
delete_users(true, true, true, false);
}
}
echo "Finished: ".strftime('%Y-%m-%d %H:%M %Z')."\n";
echo "Finished: ".date(DATE_RFC2822)."\n";
?>