title: Flutter/Dart DateTime parsing UTC and converting to local
body: <p>I am trying to parse a UTC Date string to <code>DateTime</code> and then parse it to local, however I am having troubles with converting it to the local time. In the UK it should be plus one, however when I print <code>.isUtc</code> it returns as false.</p>
  
  <p>This is what I have now:</p>
  
  <pre class="lang-dart prettyprint-override"><code>print(widget.asset.purchaseDate);
  DateTime temp = DateTime.parse(widget.asset.purchaseDate);
  print(temp.toLocal());
  </code></pre>
  
  <pre><code>I/flutter (5434): 2020-05-07 21:29:00
  I/flutter (5434): 2020-05-07 21:29:00.000
  </code></pre>