• 24-11-2009, 10:16:54
    #1
    Veritabanına ekleme yaparken tarih kısmında aşağıdaki hatayı alıyorum.Tablodaki tarih sütunu char olarak ayarladım , date olarak ayarladım ama sorun çözülmedi.

    Strict Standards: date() [function.date]: 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 '2.0/no DST' instead in C:\AppServ\www\Functions\b-2.php on line 289
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '10:12:10,'','ewqewq','','F')' at line 1

    eklemeye çalıştığım tarih verisi budur.
    $date = date("d/M/Y H:i:s");

    php.ini'den bir ayarmı yapmam lazım anlamadım.
  • 24-11-2009, 10:20:12
    #2
    <?php
    date_default_timezone_set('Europe/Istanbul');

    kolay gelsin.
  • 24-11-2009, 10:33:28
    #3
    Teşekkürler hocam ama hata düzelmedi.

    Sayfanın en üstüne ekledim. Veriyi doğru ekliyor ama bu hatayı veriyor.
  • 24-11-2009, 10:47:12
    #4
    Tamam hocam yanlış yazmışım ondan işlevini görmüyormuş fonksiyon

    Europa değilde Europe olcak

    date_default_timezone_set('Europe/Istanbul');
    Tekrar teşekkürler
  • 24-11-2009, 14:17:57
    #5
    Üyeliği durduruldu
    @putenv ('TZ=Europe/Istanbul'); şeklinde kullaniyorum bende