Hi Folks, I want to display the current system (linux) time in the webpage using PHP code I have tried numerous codes had a mismatched time as output. Finally I have tried the code : <?php $date = date('l dS \of F Y h:i:s A'); echo "$date"; ?> Output: Friday 04th of June 2010 07:58:53 AM where as the actual system time is : Friday 04th of June 2010 08:58:53 PM The system local time is Japan/Tokyo. Can anyone help me with the resolution to this issue on priority.
@ Pashy & Falko Hi! try this code. it is working <?php $time_now=mktime(date('h')+3,date('i'),date('s')); print "<br>".date('h:i:s',$time_now); ?>