i've got the following function
function return_date( $rawDate ){
$HOUR = 0; $MIN = 1; $SEC = 2;
$YEAR = 0; $MONTH = 1; $MDAY = 2;
$dateNtime = explode( "T", $rawDate );
$timeArray = explode( ":", $dateNtime[1] );
$dateArray = explode( "-", $dateNtime[0] );
return date( "Y-m-d h:m:s", mktime( $timeArray[$HOUR], $timeArray[$MIN], $timeArray[$SEC], $dateArray[$MONTH], $dateArray[$MDAY], $dateArray[$YEAR] ) );
}
and it's called like this
return_date( "2005-01-28T00:00:03" )
and it returns this:
2005-01-28 12:01:03
it's bothering me that the time part is being changed from 00:00:03 to 12:01:03
Why's it doing this?
Thanks