Fix php date.timezone error on Plesk Parallel

How to fix below error message:

PHP 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


Goto Plesk 10 Panel > Domains > Open in Control Panel > Websites & Domains > Select domain > PHP settings > under “Additional directives” > enter the following:

date.timezone = Asia/Singapore

Leave a Comment

Your email address will not be published. Required fields are marked *