#2694 PHP Warning on date()/strtotime() functions usage

Produces PHP errors

My Apache error_log file is flooded with PHP warnings.
SquirrelMail: 1.4.20 [SVN]-0.rc2.20090917.fc12 installed on a Fedora 12 box.
Apache: [Thu Dec 31 01:27:31 2009] [notice] Apache/2.2.14 (Unix) DAV/2 PHP/5.3.1 mod_python/3.3.1 Python/2.6.2 mod_ssl/2.2.14 OpenSSL/1.0.0-fips-beta4 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
IMAP: dovecot 1:1.2.8-2.fc12

The warnings I get are like these:
[Thu Dec 31 01:27:47 2009] [error] [client] 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 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/squirrelmail/functions/date.php on line 289, referer: https://webmail.arendsen.org/squirrelmail/src/webmail.php

Warnings differ in mentioned function and location as follows:
strtotime() line 428
date() line 95, 347, 289


  • Jonathan Angliss

    I believe this is a preference/package issue, rather than a SquirrelMail bug. Looking at the error, you somehow got "CET/1.0/no DST" set as your timezone in your user preferences. This shouldn't be possible with the standard SquirrelMail timezones we provide (you can see we've not changed it in over 6 years [ http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/branches/SM-1_4-STABLE/squirrelmail/locale/timezones.cfg?revision=4720&view=markup ] ).

    You should try going into Options \ Personal Information and changing your time zone. If you have it set to "Same as Server", then your server's timezone is incorrectly setup. If set to something else, adjust correctly, and see if the error goes away.

  • Jonathan Angliss

    • status: open --> pending
  • SourceForge Robot

    • status: pending --> closed
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks