THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline


Hi,

This post to report one behavior on MAMP (3.0.5) when using php setup/import.php to import the fake data.

The error :

Fatal error: Uncaught exception 'ErrorException' with message 'Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /Users/.../Sites/02.Test/thelia2/core/lib/Thelia/Log/Tlog.php line 690' in /Users/.../Sites/02.Test/thelia2/core/lib/Thelia/Log/Tlog.php:690

MAMP overwrites the PHP default's timezone, whatever you put in the php.ini file.

The solution :
Add your timezone at the top of the file setup/import.php.

date_default_timezone_set('Europe/Paris');