ListMailPRO Email Marketing Software Forums

ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: edwpro on September 17, 2015, 04:59:13 pm

Title: Warning: date(): It is not safe to rely on the system's timezone settings
Post by: edwpro on September 17, 2015, 04:59:13 pm
Is there a fix for this.  Was One of the first purchasers of the new ListMailPro back in 2004

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 /home/xxxxxx/public_html/xxxxxx.com/lmp/admin.php on line 91

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 /home/xxxxxx/public_html/xxxxxx.com/lmp/admin.php on line 102
Title: Re: Warning: date(): It is not safe to rely on the system's timezone settings
Post by: DW on October 26, 2015, 03:21:38 am
Hi,

You could add this anywhere near the top of admin.php after the opening <?php tag:

Code: [Select]
date_default_timezone_set('UTC');
or you or your host could add this to php.ini:

Code: [Select]
date.timezone = UTC
UTC could be replaced with your preferred server-supported timezone, e.g. America/New_York

Per http://stackoverflow.com/a/16765214/2724133 and http://php.net/manual/en/function.date-default-timezone-set.php

Regards