PHP date is one day ahead? -


when write <?php echo date('d'); ?> day 1 day ahead? i've checked , doesn't echo on other websites on same database

try setting timezone 1 of these values.

for example, try @ start of script (with appropriate timezone, of course):

<?php date_default_timezone_set('pacific/auckland'); ?> 

Comments

Popular posts from this blog

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

java - Why is BlockingQueue.take() not releasing the thread? -

jQuery Ajax Render Fragments OR Whole Page -