php doğru tarih ve zaman olamıyorum

0 Cevap php

I dont know why I'm not getting the correct date and time in my region. Here's the code

<?php
//date_default_timezone_set('Asia/Manila');
echo date('YYYY-mm-dd H:i:s'); ?>

Even if I comment out or change the time zone the date and time that I'm getting is still the same. The date today is 23. But its outputting 22. And the time doesn't change even if I change the time zones. Does it have something to do with my computer? Because I sometimes notice that the clock on the lower right corner of the screen is not displaying the correct time.

İşte şimdiki zaman, ama onun bu görüntüleniyor:

01-22-2011 05:38:31-PM

alt text

0 Cevap