marcocesarato / PHP-Antimalware-Scanner

AMWScan (PHP Antimalware Scanner) is a free tool to scan php files and analyze your project to find any malicious code inside it.
https://marcocesarato.github.io/PHP-Antimalware-Scanner/
GNU General Public License v3.0
646 stars 108 forks source link

Feature Request - Adjust Date and Time reporting to ISO standards #32

Open mjpcomp opened 3 years ago

mjpcomp commented 3 years ago

Looks like the date/time in reports/logs is using the British/EU standard format of YYYY-DD-MM, but, the ISO standard should be used https://www.iso.org/iso-8601-date-and-time-format.html as it is the more uniform date/time format that is unambiguous... YYYY-MM-DD (Least to Most significant)

mjpcomp commented 3 years ago

I think the main issue is with this line: https://github.com/marcocesarato/PHP-Antimalware-Scanner/blob/2d2c409b9d554e6f2b7aef7b4204ce00d598b296/src/Scanner.php#L363

Noticed that the reports are Y-M-D, but, the CLI isn't...

mjpcomp commented 3 years ago

Sorry, and one more: https://github.com/marcocesarato/PHP-Antimalware-Scanner/blob/2d2c409b9d554e6f2b7aef7b4204ce00d598b296/src/Scanner.php#L1499