From e4755feeefcd8f1b57f610bfef73d3f78fd7cfb3 Mon Sep 17 00:00:00 2001 From: Fot0n Date: Mon, 19 Sep 2022 13:49:05 +0300 Subject: [PATCH] Make it compatible with php 8.1 strftime was deprecated. --- scan.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scan.php b/scan.php index ad4d9fc..4f75ca3 100644 --- a/scan.php +++ b/scan.php @@ -622,8 +622,8 @@ class MalwareScanner private function report($start, $dir) { $end = time(); - echo 'Start time: ' . strftime('%Y-%m-%d %H:%M:%S', $start) . PHP_EOL; - echo 'End time: ' . strftime('%Y-%m-%d %H:%M:%S', $end) . PHP_EOL; + echo 'Start time: ' . date('Y-m-d H:m:s', $start) . PHP_EOL; + echo 'End time: ' . date('Y-m-d H:m:s', $end) . PHP_EOL; echo 'Total execution time: ' . ($end - $start) . PHP_EOL; echo 'Base directory: ' . $dir . PHP_EOL; echo 'Total directories scanned: ' . $this->stat['directories'] . PHP_EOL;