Skip to content

Commit e19871c

Browse files
committed
✨ Set mautic timezone param to match PHP
1 parent be3adc6 commit e19871c

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

apache/makeconfig.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
$parameters['trusted_proxies'] = $proxies;
3737
}
3838

39+
if(array_key_exists('PHP_INI_DATE_TIMEZONE', $_ENV)) {
40+
$parameters['default_timezone'] = $_ENV['PHP_INI_DATE_TIMEZONE'];
41+
}
42+
3943
$path = '/var/www/html/app/config/local.php';
4044
$rendered = "<?php\n\$parameters = ".var_export($parameters, true).";\n";
4145

beta-apache/makeconfig.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
$parameters['trusted_proxies'] = $proxies;
3434
}
3535

36+
if(array_key_exists('PHP_INI_DATE_TIMEZONE', $_ENV)) {
37+
$parameters['default_timezone'] = $_ENV['PHP_INI_DATE_TIMEZONE'];
38+
}
39+
3640
$path = '/var/www/html/app/config/local.php';
3741
$rendered = "<?php\n\$parameters = ".var_export($parameters, true).";\n";
3842

beta-fpm/makeconfig.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
$parameters['trusted_proxies'] = $proxies;
3434
}
3535

36+
if(array_key_exists('PHP_INI_DATE_TIMEZONE', $_ENV)) {
37+
$parameters['default_timezone'] = $_ENV['PHP_INI_DATE_TIMEZONE'];
38+
}
39+
3640
$path = '/var/www/html/app/config/local.php';
3741
$rendered = "<?php\n\$parameters = ".var_export($parameters, true).";\n";
3842

common/makeconfig.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
$parameters['trusted_proxies'] = $proxies;
3737
}
3838

39+
if(array_key_exists('PHP_INI_DATE_TIMEZONE', $_ENV)) {
40+
$parameters['default_timezone'] = $_ENV['PHP_INI_DATE_TIMEZONE'];
41+
}
42+
3943
$path = '/var/www/html/app/config/local.php';
4044
$rendered = "<?php\n\$parameters = ".var_export($parameters, true).";\n";
4145

fpm/makeconfig.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
$parameters['trusted_proxies'] = $proxies;
3737
}
3838

39+
if(array_key_exists('PHP_INI_DATE_TIMEZONE', $_ENV)) {
40+
$parameters['default_timezone'] = $_ENV['PHP_INI_DATE_TIMEZONE'];
41+
}
42+
3943
$path = '/var/www/html/app/config/local.php';
4044
$rendered = "<?php\n\$parameters = ".var_export($parameters, true).";\n";
4145

0 commit comments

Comments
 (0)