Author Topic: Warning: date(): It is not safe to rely on the system's timezone settings  (Read 3639 times)

edwpro

  • Posts: 11
    • View Profile
    • http://www.247wow.com
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

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
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
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting