Fix to replace deprecated PHP date function

This commit is contained in:
JRGTH
2022-06-20 00:04:34 -04:00
parent 13ead8950d
commit 995a1233ac
3 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
======================
Version Description
1.1.11......Fix to replace deprecated PHP date function.
1.1.10......Add Debian 11(Bullseye) to the WebGUI.
1.1.09......Always check/update create.sh for /tmp sane permissions.
1.1.08......Always check for host /tmp sane permissions.

View File

@@ -49,7 +49,8 @@ $rootfolder = $cwdir;
$configfile = "$rootfolder/conf/bastille_config";
$configfile_bastille = "$rootfolder/bastille-dist/usr/local/etc/bastille/bastille.conf";
$versionfile = "$rootfolder/version";
$date = strftime('%c');
//$date = strftime('%c'); // Previous PHP versions, deprecated as of PHP 8.1.
$date = date('D M d h:i:s Y', time()); // Equivalent date replacement for the previous strftime function.
$logfile = "$rootfolder/log/bastille_ext.log";
$logevent = "$rootfolder/log/bastille_last_event.log";
$backup_path = exec("/usr/bin/grep 'BACKUP_DIR=' $configfile | /usr/bin/cut -d'\"' -f2");

View File

@@ -1 +1 @@
1.1.10
1.1.11