title: MySQL - ER_TRUNCATED_WRONG_VALUE: Incorrect datetime value, on a Timestamp column
body: <p>I have a MYSQL column that is defined as TIMESTAMP.</p>
  
  <p>Whenever I create a row with javascript <code>new Date()</code> the value is stored ok without issues.</p>
  
  <p>However when I want to update the value, sending the same <code>new Date()</code> on that column, i get an error </p>
  
  <pre><code>Error: ER_TRUNCATED_WRONG_VALUE: Incorrect datetime value: '2017-06-16T17:35:34.377Z' for column 'last_access'.
  </code></pre>
  
  <p>I can manage the whole thing as Datetime and format the date accordingly to solve the error, however I want to understand why the error is happening.</p>