1. Ana Sayfa
  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?
Subscribe
Bildir
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Yorum
Inline Feedbacks
View all comments