title: Laravel 7 - created_at shows wrong datetime in datatable
body: <p>in database I have stored date in field created_at for storage logs. Problem is that <strong>date in database is different</strong> from displayed in datatable.</p>
  <p>Here is a screenshot from database row:
  <a href="https://i.stack.imgur.com/3lu67.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3lu67.png" alt="enter image description here" /></a></p>
  <p>And result in displayed datatable:
  <a href="https://i.stack.imgur.com/H55dT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H55dT.png" alt="enter image description here" /></a></p>
  <p>Timezone in database looks correct for Poland +2H:</p>
  <p><a href="https://i.stack.imgur.com/ZQcPN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZQcPN.png" alt="enter image description here" /></a></p>
  <p>Also every new content added to database shows correct date. Timezone in Laravel is set to Europe/Warsaw which is correct. Date format is casted in logs model to prefered format:</p>
  <pre><code>class StorageLog extends Model
  {
      protected $table = &quot;storage_logs&quot;;
      public $timestamps = true;
  
      protected $casts = [
          'created_at' =&gt; 'datetime:Y-m-d H:i:s',
      ];
  }
  </code></pre>
  <p>Here is a code that calls database and returns data:</p>
  <pre><code> $logs = StorageLog::select('id', 'id_storage_product', 'id_user', 'log', 'created_at')
   $result = $logs-&gt;orderBy('id', 'DESC')-&gt;paginate(20, ['*'], 'page', 1);
  </code></pre>
  <p>Result using DD function:
  <a href="https://i.stack.imgur.com/Uw1VG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uw1VG.png" alt="enter image description here" /></a></p>
  <p>Many thanks for any help with problem.
  Have a nice day!</p>