PDA

Click to See Complete Forum and Search --> : how to changthe server date, time to local date and time


edwinho
Jul 18th, 2007, 01:49 AM
i can change the time by add the hour difference, but how the date be changed! help!

$nowtime=time();
$timelogin=strftime('%H:%M:%S',time() + 60*60*8);// add 8 hours as local time

RudiVisser
Jul 19th, 2007, 09:17 AM
$hr = strtotime('+1 hour');
date('d/m/Y H:i:s', $hr);