IRCSayfasi - mIRCDunyasi, mIRCForumlari, mIRCRehberi   TaTLiBeLa

Geri Dön   IRCSayfasi - mIRCDunyasi, mIRCForumlari, mIRCRehberi > Forum Dünyası > vBulletin > vBulletin Sorunları ve Çözümleri

vBulletin Sorunları ve Çözümleri vBulletin sorunlarının ve çözümlerinin paylaşıldığı konulara bu başlık altından ulaşabilirsiniz.

Etiketlenen üyelerin listesi

Yeni Konu Aç  Cevapla
 
LinkBack Seçenekler Stil
Alt 28 Mart 2021, 15:27   #1
Çevrimdışı
RoJ
BayrakIRCSayfasiBayrak
RoJ - ait Kullanıcı Resmi (Avatar)
date.php & timezone setting hatası ve ÇÖZÜMÜ


-- Sponsor Baglantı --



date.php & timezone setting hatası ve ÇÖZÜMÜ


Merhaba arkadaşlar,
Sitemde aşağıda belirttiğim hataları alıyordum:

Alıntı:
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 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/siteadi/public_html/libraries/joomla/utilities/date.php on line 56

Warning: mktime() [function.mktime]: 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 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/siteadi/public_html/libraries/joomla/utilities/date.php on line 117

Warning: strftime() [function.strftime]: 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 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /home/siteadi/public_html/libraries/joomla/utilities/date.php on line 250
Biraz araştıdıktan sonra, yabancı kaynaklı bir siteden öğrendiklerime göre aşağıda belirttiğim bir yöntemle sorunumdan kurtuldum:

libraries/joomla/utilities/date.php dosyasında (52. satır civarı) değişiklik öncesinde şöyle yazıyordu:

Alıntı:
function __construct($date = 'now', $tzOffset = 0)
{
if ($date == 'now' || empty($date))
{
$this->_date = strtotime(gmdate("M d Y H:i:s", time()));
return;
}
Yaptığım değişiklik sonrası kodun görünümü:

Alıntı:
function __construct($date = 'now', $tzOffset = 0)
{
date_default_timezone_set ("Europe/Helsinki");
{
$this->_date = strtotime(gmdate("M d Y H:i:s", time()));
return;
}
Sizinde başınıza benzer bir şey gelirse, önce date.php dosyasının yedeğini almanız tavsiyesi ile bu yöntemi deneyebilirsiniz.

Kolay gelsin.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 signatures.
  Alıntı ile Cevapla

İS Reklam
 Reklam Verin
Yeni Konu Aç  Cevapla

Etiketler
date.php & timezone setting hatası ve çözümü


Şu an bu konuyu okuyan kişi sayısı: 1 (0 üye ve 1 misafir)
 
Seçenekler
Stil

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Tam spam ve deindex çözümü GeN Google Seo 0 08 Mart 2021 12:09
irc Nickserv Set Timezone Konusu GeN Eğitim Dünyası 0 01 Ağustos 2020 08:11
vcruntime140.dll Hatası Nasıl Çözülür? GeN Windows 0 29 Temmuz 2020 10:27
Database hatası çözümü! IS-GLobaL vB 4.x Genel 0 29 Haziran 2020 21:44
NickServ Set Timezone GeN NickServ 0 24 Haziran 2020 16:56