/**
  * @param array $drupalProduct
  * @param \Pim\Bundle\CatalogBundle\Model\ProductValue $productValue
  * @param string $field
  * @param array $context
  */
 public function normalize(array &$drupalProduct, $productValue, $field, array $context = array())
 {
     $drupalProduct['values'][$field][$context['locale']][] = array('type' => 'pim_catalog_date', 'value' => $productValue->getDate() instanceof \DateTime ? $productValue->getDate()->format('c') : null);
 }
 /**
  * {@inheritDoc}
  */
 public function getDate()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getDate', array());
     return parent::getDate();
 }