mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
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:
@@ -12,6 +12,10 @@ $row = mysqli_fetch_array($sql_settings);
|
||||
// Company Settings
|
||||
$config_enable_cron = intval($row['config_enable_cron']);
|
||||
$config_cron_key = $row['config_cron_key'];
|
||||
$config_timezone = sanitizeInput($row['config_timezone']);
|
||||
|
||||
// Set Timezone
|
||||
date_default_timezone_set($config_timezone);
|
||||
|
||||
$argv = $_SERVER['argv'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user