Set Timezone in the CRON files as well as the command line PHP doesn't always respect the system timezone

This commit is contained in:
johnnyq
2024-03-21 14:55:54 -04:00
parent 2f4ddd85ca
commit 5266f126cb
5 changed files with 22 additions and 2 deletions

View File

@@ -15,6 +15,10 @@ $config_smtp_username = $row['config_smtp_username'];
$config_smtp_password = $row['config_smtp_password'];
$config_smtp_port = intval($row['config_smtp_port']);
$config_smtp_encryption = $row['config_smtp_encryption'];
$config_timezone = sanitizeInput($row['config_timezone']);
// Set Timezone
date_default_timezone_set($config_timezone);
$argv = $_SERVER['argv'];