This topic is locked

Time in GMT +8

11/28/2007 2:53:58 AM
PHPRunner General questions
mic'',) author

I have a problem in function date()

eg. echo date("Y-m-d H:i:s",time());
appears

"2007-11-28 08:00:00"
but I need is this

"2007-11-28 16:00" or "2007-11-28 04:00 PM"
my GMT is +8
Any help on this, Thanks.

J
Jane 11/28/2007

Hi,
try to use this code:

echo date("Y-m-d h:i A",strtotime("+8 hour"));

mic'',) author 12/2/2007

Thanks Jane!
Advance Merry Christmas!