title: How to convert server time to local time in Laravel?
body: <p>I would like to print the time in local time in Laravel. If the user create a post it will display the created time on the server. How can I display it in local time ?</p>
  
  <p>In my blade file I used this code to display created time,</p>
  
  <pre><code>{{{ $posts-&gt;updated_at }}}
  </code></pre>
  
  <p>Which displays the time in database, which is a server time. How can I convert it to users local time ? </p>