Kodları lütfen aşağıdaki butonları kullanarak renklendirin. Örnek: <php> echo "Selam Dünya"; </php>
Yardım
karakter kaldı

Smarty strftime hatası

Merhaba Arkadaşlar smarty de kendimi geliştirebilmek için bir proje geliştiriyorum.
sık sık böyle bir hata alıyorum nedendir acaba

Strict Standards: strftime() [function.strftime]: 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 '3.0/DST' instead in C:\AppServ\www\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 59
+0
-0
Cevaba KatılıyorumKatılmıyorum
Cevap Yaz Yorum Yaz Arşivime Ekle Takip Et

Doğru Cevap

  • teacher0610 adlı üyenin fotoğrafı
    12 yıl önce yazılmış
    54 cevap - 29 soru
    php.ini dosyasında “date.timezone” diye aratıp bulduğunuz satırı ”
    date.timezone = “Europe/Istanbul” ” diye değiştirmeniz. Bu sayede zaman bölgesini “Europe/Istanbul” olarak ayarlıyoruz.
    Veya ilgili dosyaya;
    date_default_timezone_set('Europe/Istanbul');
    
    


    Satırını eklemekte sorununu çözecektir.
    • Recep adlı üyenin fotoğrafı Recep
      bu sorunu localhostta yaşayınca acayip şaşırmıştım hostgatordada bu şekilde bir hata almıştım
      teşekkür ederim...
      12 yıl önce yazılmış

Cevaplar

Hiç cevap bulunamadı.