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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -