I've a field in a table that datatype's type datetime. Here i want to get current server GMT time before insert into db. Any idea why this code always give me result in am although the present time is pm?
Sample result: 18/09/2007 01:29:04 am
here the php code;
[PHP]$time = gmdate('Y-m-d h:i:s', mktime(gmdate(' GMT') + 8));[/PHP]
Sample result: 18/09/2007 01:29:04 am
here the php code;
[PHP]$time = gmdate('Y-m-d h:i:s', mktime(gmdate(' GMT') + 8));[/PHP]
Comment