PHP Warning: mktime()
Brought to you by:
jberanek
My apache error log is full of php duplicate warnings:
PHP Warning: mktime(): 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 'UTC' for 'GMT/0.0/no DST' instead in /var/www/html/bookings/functions.inc on line 2313
Not sure if this is my setup or anything that needs changing in MRBS to remove the warning or if safe to ignore.
Using 1.4.10 of mrbs on centos 6.5
This is a bug in MRBS. It has been fixed in the trunk since the 1.4.10 release. You can solve the problem in any of the following three ways:
(1) Downloading the latest version of MRBS from the trunk, or
(2) Setting the timezone using date.timezone in your php.ini file, or
(3) Patching your system by editing internalconfig.inc.php as follows:
Replace lines 74 and 75 which look like this:
with the following:
Campbell