title: Laravel Create Date return different format
body: <p>I tried to select the create_data from the database, the date format in the database is like &quot;2021-05-18 11:06:01&quot;, but when I retrieve and display it, it's will show the format like is &quot;2021-05-18T03:06:01.000000Z&quot;. Does anyone know why will become like that? I want the date which is actually like the database store which is &quot;2021-05-18 11:06:01&quot;. However, the create_date inside DB the format is UTC +8, but when receive it will show UTC format.</p>
  <p><a href="https://i.stack.imgur.com/Lmbxz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lmbxz.png" alt="enter image description here" /></a></p>
  <p><strong>Data return</strong></p>
  <pre><code>[0] =&gt; Array (
      [id] =&gt; 1
      [log_name] =&gt; login
      [description] =&gt; login
      [subject_type] =&gt; App\Models\Users
      [subject_id] =&gt; 0
      [causer_type] =&gt; App\Models\User
      [causer_id] =&gt; 2
      [properties] =&gt; &quot;&quot;         
      [created_at] =&gt; 2021-05-18T03:06:01.000000Z
  );
  </code></pre>
  <p><strong>Code</strong></p>
  <pre><code>$lastLoggedActivity = ActivityLog::where('causer_id', $userid)
      -&gt;orWhereIn('subject_id', $selectparentid)
      -&gt;with('getLogType')
      -&gt;with('getCauserDetails')
      -&gt;orderBy('created_at', 'desc')
      -&gt;get()
      -&gt;toArray();
  </code></pre>