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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -