Your software
My Mautic version is: 6.0.3
My PHP version is: PHP 8.3.23
My Database type and version is: mariadb 10.5
Your problem
I’m deploying Mautic in production using the official Docker image mautic:6.0.3-apache. I’m encountering a specific timezone validation issue that occurs during backup restoration:
Fresh Installation Behavior:
Default timezone: UTC (initial setup)
After changing to “America/Sao_Paulo” via interface:
Works perfectly with no warnings
Backup Restoration Problem:
When restoring both /html files and database:
app/config/local.php shows correct America/Sao_Paulo timezone
Mautic displays error:
“Your default timezone is not supported by PHP. Check for typos in your PHP configuration.”
Temporary workaround:
If I manually set UTC in local.php before accessing Mautic
Then change back to “America/Sao_Paulo” after login
The error disappears
These errors are showing in the log:
Your default timezone is not supported by PHP. Check for typos in your PHP configuration.
Steps I have tried to fix the problem:
Docker-level Configuration:
- Created symbolic link in docker-compose: bash -c "ln -sf /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime
- Set environment variables: TZ: America/Sao_Paulo, PHP_INI_VALUE_DATE_TIMEZONE: “America/Sao_Paulo”
PHP Configuration:
- Modified multiple PHP ini files in docker-compose: /usr/local/etc/php/conf.d/timezone.ini, /usr/local/etc/php/php.ini