• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

"It is not safe to rely on the system’s timezone settings"

Rodolfo

🥑 Chevereto Godlike
Chevereto Staff
Administrator
One common issue that I have notice recently is that some servers have update their PHP dependencies but they have fail to correct the timezone settings. This is a server config error rather than a script error and after a little research I have found that this affects every php script out there when the php.ini file has a invalid timezone value.

The problem
The php.ini config value "date.timezone" has a invalid or outdated format. This triggers a E_WARNING on php scripts. The system usually says something like:

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 'America/Halifax' for '-4.0/no DST' instead

Solutions
The solution to this is simple, the php.ini must have a valid timezone format. You need to use a valid value and then restart apache. But in some cases you don't have access to edit the php.ini file, in this case you can add code similar to this one to the chevereto includes/config.php file:
PHP:
date_default_timezone_set('America/Halifax');
Where you must change 'America/Halifax with the timezone that you want to use.

This will fix the issue and this could work for other php scripts as well.
 
Just FYI, G\ now detects when this is badly configured and it fixes it for you.
 
Back
Top