title: "SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '2018' for column 'created_at' at row 1 (SQL: insert into `news`
body: <p>So, I am currently encountering with this error, the problem is when I want to create a new record this error occurs but when I update nothing happens, my DB is MySql and it is set to utf8, I have one local and one currently deployed, the one that I am deploying has utf8 but the local one has utf8mb4 I've looked at other questions similar to mine but I don't think they have the same solution.</p>
  
  <blockquote>
    <p>SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime
    value: '2018' for column 'created_at' at row 1 (SQL: insert into
    <code>news</code> (<code>title</code>, <code>description</code>, <code>date</code>, <code>pictures</code>, <code>categroy_id</code>,
    <code>updated_at</code>, <code>created_at</code>) values (zxczx, <p>xzxczxc</p>, 09/28/2018,
    ["3_1538054794.jpg"], 6, 2018-09-27 13:26:34, 2018-09-27 13:26:34))</p>
  </blockquote>
  
  <p>and that's how I save it </p>
  
  <pre><code>    $new = new News;
  
      $new-&gt;title = $input['title'];
      $new-&gt;description = $input['description'];
      $new-&gt;date = $input['date'];
      $new-&gt;pictures = json_encode($pics);
      $new-&gt;categroy_id = $input['category'];
      $new-&gt;save();
  </code></pre>