Description: This converts PostgresSQL date_timestamps to something PHP can work with. The time part was giing me trouble (it was way off) so I left it out. The function still has a place for it, I just left the formatting out.
$Date_Time = explode(" ", $pgtimestamp);
$date_pieces = explode("-", $Date_Time);
$time_convert = explode("-", $Date_Time); // strip the tz offset from time
$time_pieces = explode(":", $time_convert);
$timestamp = mktime($time_pieces, $time_pieces, $time_pieces, $date_pieces, $date_p
return date("F j, Y, g:i a", $timestamp);