ListMessenger Forum: Php Errors-Date Related - ListMessenger Forum

Jump to content

Bug Reporting Notice

Please be advised that this section of the ListMessenger forum is not used for technical support, it is used for bug reporting only. Unless you are certain your issue is in fact a bug, please use the ListMessenger 2.2 Program Support forum if you require support for your issue.

Additionally you will want to review the new ListMessenger Issue Tracker before posting here. All confirmed bugs and solutions will be posted in the issue tracker.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Php Errors-Date Related Rate Topic: -----

#1 User is offline   keenick Icon

  • New Poster
  • Pip
  • Group: Forum Members
  • Posts: 4
  • Joined: 04-February 10

Posted 04 February 2010 - 09:06 PM

Just installed 2.2. Checking my server logs I'm seeing alot of date/timezone related errors
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. 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/New_York' for 'EST/-5.0/no DST' instead in /srv/www/htdocs/xxxxxx/includes/functions.inc.php on line 1945. My logs are flooded with these errors. I'm running Linux kernel 2.6.31 Apache 2.2 and php 5.3.0 Any one else experienced these?
0

#2 User is offline   keenick Icon

  • New Poster
  • Pip
  • Group: Forum Members
  • Posts: 4
  • Joined: 04-February 10

Posted 05 February 2010 - 01:38 PM

After further research it seems that PHP 5.3 changed some of its functions- You must set it manually

You can set a default time zone for your server from the configuration file (php.ini) at the line:

[Date]
; Defines the default timezone used by the date functions
date.timezone = America/New_York

After I set this manually everything is working fine, so this topic can be considered closed.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users