Q:

PHP - Changing the datetime to mysql readable datetime

My date and time string is: January 28, 2010 1417 with the last four numbers being the time.
How should I go about converting it to a string that would be acceptable by mysql?
when I try using strtotime I get  Warning: strtotime(): It is not safe to rely on the system's timezone settings.

A:

$timestamp = strtotime($string);

date("Y-m-d H:i:s", $timestamp);

