Symfony2 entity Time type return format
<p>I have entity for saving place's working time:</p>

<pre><code>&lt;?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * WorkingTime
 *
 * @ORM\Table(name="working_time")
 *     @ORM\Entity(repositoryClass="AppBundle\Repository\WorkingTimeRepository")
 */
class WorkingTime
{
/**
 * @var int
 *
 * @ORM\Column(name="id", type="integer")
 * @ORM\Id
 * @ORM\GeneratedValue(strategy="AUTO")
 */
private $id;

/**
 * @var int
 *
 * @ORM\Column(name="day", type="smallint")
 */
private $day;

/**
 * @var \DateTime
 *
 * @ORM\Column(name="start", type="time")
 */
private $start;

/**
 * @var \DateTime
 *
 * @ORM\Column(name="end", type="time")
 */
private $end;


/**
 * Get id
 *
 * @return integer
 */
public function getId()
{
    return $this-&gt;id;
}

/**
 * Set day
 *
 * @param integer $day
 *
 * @return WorkingTime
 */
public function setDay($day)
{
    $this-&gt;day = $day;

    return $this;
}

/**
 * Get day
 *
 * @return integer
 */
public function getDay()
{
    return $this-&gt;day;
}

/**
 * Set start
 *
 * @param \DateTime $start
 *
 * @return WorkingTime
 */
public function setStart($start)
{
    $this-&gt;start = $start;

    return $this;
}

/**
 * Get start
 *
 * @return \DateTime
 */
public function getStart()
{
    return $this-&gt;start;
}

/**
 * Set end
 *
 * @param \DateTime $end
 *
 * @return WorkingTime
 */
public function setEnd($end)
{
    $this-&gt;end = $end;

    return $this;
}

/**
 * Get end
 *
 * @return \DateTime
 */
public function getEnd()
{
    return $this-&gt;end;
}
}
</code></pre>

<p>But when I try to display retrieve it, time fields are converted to something like:</p>

<pre><code> {
          "id": 16,
          "day": 2,
          "start": "1970-01-01T07:00:00+0000",
          "end": "1970-01-01T00:00:00+0000"
  },
</code></pre>

<p>Is it possible, that it gets converted by FOSRestBundle? How can I get rid of it and get only HH:mm, instead of 1970-01-01T00:00:00+0000?</p>