1. Anasayfa
  2. Hata-Çözüm-İpucu

Severity: Warning Message: date(): It is not safe to rely on the system’s timezone settings

Severity: Warning Message: date(): It is not safe to rely on the system’s timezone settings
Php Hata Çözümleri Warning: date(): It is not safe to rely on the system’s timezone settings
0


A PHP Error was encountered
Severity: Warning
Message: 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.

Php Date Hatası

Yukarıdaki hatayı genelde php’de date fonksiyonunu kullanıldığı zaman oluşur sorunu çözmek için yapmanız gereken date fonksiyonu kullanmadan önce

<?php date_default_timezone_set('UTC'); ?>

eklemek veya php.ini dosyasında ;date.timezone =  yazan satırı bulup date.timezone =Europe/Istanbul şeklinde değiştirmek eğer farklı bir saat dilimi seçmek isterseniz. Buradan seçim yapabilirsiniz , değişiklikten sonra apache’yi yeniden başlatmayı unutmayın

Bu İçeriğe Tepkin Ne Oldu?
  • 0
    ba_ar_l_
    Başarılı
  • 0
    gayet_yi
    Gayet İyi
  • 3
    te_ekk_rler
    Teşekkürler
  • 0
    anlamad_m
    Anlamadım
  • 0
    yetersiz
    Yetersiz
Subscribe
Bildir
guest

Bu site, istenmeyenleri azaltmak için Akismet kullanıyor. Yorum verilerinizin nasıl işlendiği hakkında daha fazla bilgi edinin.

0 Yorum
Inline Feedbacks
View all comments