PDA

View Full Version : سوال: اين ارور براي تنظيمات تاريخ سرور هست؟ چطور رفعش كنم؟



numberone1
دوشنبه 24 بهمن 1390, 01:52 صبح
Strict Standards: date() [function.date (http://www.injaa.com/admin/function.date)]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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/Helsinki' for 'EET/2.0/no DST' instead in /home/public_html/inc/class.phpmailer.php on line 1406

كدي زده ارور ميده اينه



function RFCDate() {
$tz = date("Z");
$tzs = ($tz < 0) ? "-" : "+";
$tz = abs($tz);
$tz = ($tz/3600)*100 + ($tz%3600)/60;
$result = sprintf("%s %s%04d", date("D, j M Y H:i:s"), $tzs, $tz);

return $result;
}

اين خطش مشكل درست ميكنه

$tz = date("Z");

MostafaEs3
دوشنبه 24 بهمن 1390, 02:37 صبح
//////////