انجمن


اخطار عجیب در ورد پرس  (۲ نوشته)

  • deva

    آفلاین
    عضو
    تعداد نوشته‌ها: ۶
    # نوشته شده: ۱۴ سال پیش
    ۲۹ دی ۱۳۸۸ - ۱۸:۴۶

    با سلام
    در وبلاگ من اخطاری همانند اخطار زیر میدهد

    Warning: strtotime() [function.strtotime]: 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/New_York' for 'EST/-5.0/no DST' instead in /home/jinusne/public_html/wp-includes/functions.php on line 35
    
    Warning: date() [function.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 'America/New_York' for 'EST/-5.0/no DST' instead in /home/jinusne/public_html/wp-includes/functions.php on line 107

    من در سایت رسمی وردپرس گشتم و برای این موضوع این لینک رو پیدا کردم ولی ندونستم چطور برای رفع مشکل اقدام کنم
    ممنون میشوم کمکم کنید

  • گناهکار

    آفلاین
    کلیددار
    تعداد نوشته‌ها: ۳۵۳۵
    تشکر شده: ۲۵۴۴ بار
    # نوشته شده: ۱۴ سال پیش
    ۳۰ دی ۱۳۸۸ - ۱۳:۵۹

    این دستور رو به پرونده‌ی php.iniتون اضافه کنین:
    date.timezone = "Asia/Tehran"

    اگه به php.ini دسترسی ندارین می‌تونین این دستور رو به پرونده‌ی wp-config.php اضافه کنین:
    date_default_timezone_set('Asia/Tehran');

درباره‌ی این موضوع