Cheers,
Aaron
I used the "better" one at the end of Mahara's config.php as suggested...
Instead of messing around with php.ini ,you may try to add the following near the end of the Mahara's config.php file see https://bugs.launchpad.net/mahara/+bug/922057
date_default_timezone_set("America/Detroit");
or this better fix :
if(function_exists("date_default_timezone_set") and function_exists("date_default_timezone_get")) {
@date_default_timezone_set(@date_default_timezone_get());
}
Cheers
]]>
Thanks for your reply.
From the link provided I see I will need "America/Detroit" once I can figure out what exactly to add.
]]>If there is a [Date] section in your php.ini file, you need to add a line below it like this:
date.timezone = Pacific/Auckland
Except instead of "Pacific/Auckland", you want to put your actual timezone, from the lists here: http://www.php.net/manual/en/timezones.php . (Unless you're in New Zealand ;)
Cheers,
Aaron
Warning: error_log() [function.error-log]: 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/Chicago' for 'CDT/-5.0/DST' instead in /home/idp/public_html/lib/errors.php on line 243
I have downloaded my Mahara php.int file and cannot find any reference to "timezone" at all. Can I have a little guidance with this please?
Using Mahara version: 1.5.1
]]>Cheers
Andrew
]]>The date.timezone setting is set in the php.ini file. You will need to check what is currently set in the apache version of the php.ini file which, if you're using ubuntu or debian, should be at /etc/php5/apache2/php.ini. A list of supported timezones is at http://php.net/manual/en/timezones.php.
Hope this helps.
Thanks,
Melissa
I appear to have installed mahara correctly.
When I tried to run it though, I received the following error (many times):
Warning: error_log() [function.error-log]: 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/Chicago' for 'CST/-6.0/no DST' instead in/home/mlapl1/public_html/mahara/lib/errors.php on line 243
And then
ERROR - something bad happened after headers have been sent. Check the error log for more information.
I have checked the error logs but see nothing significant. There were errors at setup time that did not stop the setup/installation.
This timezone problem is quite debilitating.
Thanks for any help
Andrew
]]>