PHP date () fonksiyonu doğru süresi vermiyorum

0 Cevap php

Ben php date () geri 2 saat gerçek zaman ayarı, bana yanlış zaman vererek neden anlamaya çalışıyorum.

<?php echo date("Y-m-d H:i:s"); ?>

This gives 2011-01-01 03:14:04 instead of 2011-01-01 05:14:04. The hour is decreased by 2. I have not change my timezone for date() and when users visit the site I want the time to be correct for their timezone also. How can I get this to work using php?

0 Cevap