public static function mysql($date) { $date = new DateTime($date, new DateTimeZone('GMT')); return $date->format('Y-m-d H:i:s'); }