Buonasera,
ho un modulo per l'invio delle email che utilizzo da tempo, in localhost va tutto bene, mentre sul sito mi da questo errore:
codice:
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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in/data/vhosts/autoricambidonato.it/httpdocs/test/class/class.phpmailer.php on line 1925
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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in/data/vhosts/autoricambidonato.it/httpdocs/test/class/class.phpmailer.php on line 1929
Il codice in questione è il seguente:
Codice PHP:
public static function RFCDate() {
$tz = date('Z');
$tzs = ($tz < 0) ? '-' : '+';
$tz = abs($tz);
$tz = (int)($tz/3600)*100 + ($tz%3600)/60;
$result = sprintf("%s %s%04d", date('D, j M Y H:i:s'), $tzs, $tz);
return $result;
}