src/PeekAndPoke/Component/Formal/Mapper/SimpleDateMapper.php
public function mapToFrom($value)
    {
        if ($value instanceof \DateTime) {

            // ensure the timezone
            $date = (new \DateTime('now', $this->timeZone))->setTimestamp($value->getTimestamp());

            return $date->format($this->format);
        }

        return '';
    }
public function mapToFrom($value)
    {
        if ($value instanceof \DateTime) {

            // ensure the timezone
            $date = (new \DateTime('now', $this->timeZone))->setTimestamp($value->getTimestamp());

            return $date->format($this->format);
        }

        return '';
    }
@param \DateTime $value

@return mixed