Was getting a debug error like: "Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in . ."
In /includes/extra_configures/set_time_zone.php
Replaced:
if ($TZ != '') {
putenv('TZ=' . $TZ);
@date_default_timezone_set($TZ);
}
with:
if ($TZ != "") {
//for >= PHP 5.1
if(function_exists("date_default_timezone_set")) {
date_default_timezone_set($TZ);
// for PHP < 5.1
} else {
putenv("TZ=" . stripslashes($TZ));
}
}
Seems to work.
Bookmarks