title: Incorrect datetime value: '1540564519' for column 'date_updated' at row 1 On saving model Phalcon?
body: <p>I'm trying to save data in a table but when i save it throws the below error:</p>
  
  <blockquote>
    <p>SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime
    value: '1540564519' for column 'date_updated' at row 1 On saving model
    evaluation_remedy</p>
  </blockquote>
  
  <p>evaluation_remedy Table Schema:</p>
  
  <pre><code>--
  -- Table structure for table `evaluation_remedy`
  --
  
  CREATE TABLE IF NOT EXISTS `evaluation_remedy` (
  `id` int(10) unsigned NOT NULL,
    `title` varchar(255) NOT NULL,
    `description` text NOT NULL,
    `diet` text NOT NULL,
    `is_local_food_store` tinyint(4) NOT NULL DEFAULT '0',
    `product_image` varchar(255) DEFAULT NULL,
    `product_description` text,
    `product_url` varchar(255) DEFAULT NULL,
    `importance` tinyint(4) NOT NULL DEFAULT '0',
    `is_active` tinyint(4) NOT NULL DEFAULT '1',
    `date_created` datetime DEFAULT NULL,
    `date_updated` datetime DEFAULT NULL
  ) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8;
  
  --
  -- Indexes for table `evaluation_remedy`
  --
  ALTER TABLE `evaluation_remedy`
   ADD PRIMARY KEY (`id`);
  
  --
  -- AUTO_INCREMENT for dumped tables
  --
  
  --
  -- AUTO_INCREMENT for table `evaluation_remedy`
  --
  ALTER TABLE `evaluation_remedy`
  MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=64;
  </code></pre>
  
  <p>Let me know if any other information is required. I will be happy to share anything required for the solution.</p>
  
  <p>Store/Save Function:</p>
  
  <pre><code>public function saveEvaluationRemedyAction(){
  
          // Instantiate new form for Evaluation Symptom Model
          $form = new EbEvaluationRemedyForm();
  
          if( $form -&gt;isValid($this-&gt;request-&gt;getPost())){
              // Get the Evaluation Symptom id (if any)
              $id = $this-&gt;request-&gt;get( 'id', null );
              // Get existing Evaluation Symptom (if any) or create a new one
              if( null !== $id &amp;&amp; $id !== '' ){
                  $evaluationRemedy = CxEbEvaluationRemedy::findFirst( $id );
              } else {
                  $evaluationRemedy = new CxEbEvaluationRemedy();
              }
  
              // Bind form with post data
              $form-&gt;bind( $this-&gt;request-&gt;getPost(), $evaluationRemedy );
  
              // Save the form with new data
              $evaluationRemedy-&gt;save();
  
              // Saving linked remedies in Related Remedy Table
              $remedies = $this-&gt;request-&gt;get('remedies_list');
              if($remedies){
                  foreach ($remedies as $key =&gt; $remedy) {
                      $relatedRemedy = CxEbEvaluationRemedy::getIdByName($remedy);
                      $remedyObject = new CxEbEvaluationRemedyRelated();
                      $remedyObject-&gt;setEvaluationRemedyId($evaluationRemedy-&gt;getId());
                      $remedyObject-&gt;setEvaluationRelatedRemedyId($relatedRemedy['id']);
                      $remedyObject-&gt;save();
                  }
              }
          } else {
              // Send error Json response
              return CxHelper::SendJsonError($form-&gt;getHtmlFormattedErrors());
          }
  
          // Return success
          return array( 'data' =&gt; 'Success' );
      }
  </code></pre>
  
  <p>Let me know if any other information is required. I will be happy to share anything required for the solution.</p>
  
  <p>Thanks</p>