title: CakePHP wrong date in MySQL
body: <p>I had a field called issue_date in a table that was datetime type in MySQL and I changed to date.</p>
  
  <p>When I am trying to save the date to the database is saving it with<br>
  weird years(for example 2196), when the real date is 2003, I made an output of the object before saving it and is showing the real date (2003-06-30)</p>
  
  <p>The field is <code>issue_date</code>.</p>
  
  <p>This is my function to save:</p>
  
  <pre><code>public function populate(){
          $this-&gt;tangoModel=$this-&gt;loadModel('Tango');
          $tango=$this-&gt;tangoModel-&gt;getInvoices();
          $this-&gt;obrasModel=$this-&gt;loadModel('Obras');
          $obras=$this-&gt;obrasModel-&gt;getObras();
          foreach($tango as $invoice){
          $data[] = ([
          'issue_date' =&gt; date('Y-m-d', strtotime($invoice['issue_date'])),
              'type' =&gt; $invoice['type']
          ]
          );
          }
          print_r($data);
          $invoices = $this-&gt;Invoices-&gt;newEntities($data);
          foreach($invoices as $invoice){
          if ($this-&gt;Invoices-&gt;save($invoice)) {
                  $this-&gt;Flash-&gt;success(__('The invoice has been saved.'));
          };
          }
  
  
      }
  </code></pre>
  
  <p>This is the output of one object of data array:</p>
  
  <pre><code>[0] =&gt; Array
      (
          [issue_date] =&gt; 2003-06-30,
          [type] =&gt; CRE
      )
  </code></pre>
  
  <p>And this is the output of how is inserted in MySQL</p>
  
  <pre><code>    [{"id":"1",
      "issue_date":"2196-11-06",
      "type":"CRE"
      }]
  </code></pre>
  
  <p>This is how the field is validated in the InvoicesTable file in <code>/Model/Table</code>:</p>
  
  <pre><code>public function validationDefault(Validator $validator)
      {
          $validator
              -&gt;add('id', 'valid', ['rule' =&gt; 'numeric'])
              -&gt;allowEmpty('id', 'create');
  
          $validator
              -&gt;add('issue_date', 'valid', ['rule' =&gt; 'date'])
              -&gt;allowEmpty('issue_date');
           $validator
              -&gt;allowEmpty('type');
  
          return $validator;
      }
  }
  </code></pre>
  
  <p>This is the entity file Invoice.php in <code>/Model/Entity</code></p>
  
  <pre><code>   /**
   * Invoice Entity.
   *
   * @property int $id
   * @property \Cake\I18n\Time $issue_date
   * @property string $type
   */
  class Invoice extends Entity
  {
  
      /**
       * Fields that can be mass assigned using newEntity() or patchEntity().
       *
       * Note that when '*' is set to true, this allows all unspecified fields to
       * be mass assigned. For security purposes, it is advised to set '*' to false
       * (or remove it), and explicitly make individual fields accessible as needed.
       *
       * @var array
       */
      protected $_accessible = [
          '*' =&gt; true,
          'id' =&gt; false,
      ];
  }
  </code></pre>
  
  <p>Thanks</p>