خطا :
Warning: date() [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.
علت :
تنظیم نبودن مقدار date.timezone در فایل php.ini
راه حل :
فایل php.ini را باز کنید.(با دستور find / | grep php.ini می توانید آدرس آن را بدست آورید)
سپس مقدار date.timezone را همانند زیر اضافه کنید :
date.timezone = "Asia/Tehran"
اگر این پارامتر وجود نداشت ،خودتان اضافه کنید.
سپس سرویس httpd یا apache را ریستارت کنید.
هیچ نظری موجود نیست:
ارسال یک نظر