title: How to get last modified date of file in Laravel, NOT converted to UTC
body: <p>I'm, trying to get the last modified date of a file in Laravel. Works fine, except that the File::lastModified() function is returning the Unix timestamp according to UTC. So, looking in Windows Explorer, I see the "Date Modified" for the file is "4/11/2018 10:32 AM". If I execute the code below, what echoes out is "2018-04-11 14:32:12", which is off by +4 hours:</p>
  
  <pre><code>$lastmodified = File::lastModified($filename);
  $lastmodified = DateTime::createFromFormat("U", $lastmodified);
  $lastmodified = $lastmodified-&gt;format('Y-m-d H:i:s');
  echo $lastmodified;
  </code></pre>
  
  <p>So along the line it's looking at the 10:32 AM time, converting that to UTC, and then returning the Unix timestamp. Isn't there some way to get a timestamp without the 10:32 AM time ever being converted to UTC?</p>