I am trying to insert date and time into a table, see below:
The date is selected by the user via a calendar, it all works fine. But when i check the inserted row it inserts like this:PHP Code:
$date = date(time());
$hours = date('h',$date);
$mins = date('m',$date);
$secs = date('s',$date);
$_POST['date'] = $_POST['year'].'-'.
The date is fine but the time is wrong, it should have added it like this:2010-09-20 03:09:55
I think the time formate may be wrong? I need it to be in UK time format.2010-09-20 15:48:55
Any ideas how i can do this?