title: python: UTC to local daylight savings time
body: <p>Now that it's daylight savings time in my timezone, I'm having a problem translating UTC to local time.</p>
  
  <pre><code>&gt;&gt;&gt; from dateutil.parser import parse
  &gt;&gt;&gt; from dateutil import tz
  &gt;&gt;&gt; dt = parse('1:30').replace(tzinfo=tz.tzutc())
  &gt;&gt;&gt; dt
  datetime.datetime(2015, 3, 8, 1, 30, tzinfo=tzutc())
  &gt;&gt;&gt; dt = dt.astimezone(tz.tzlocal())
  &gt;&gt;&gt; dt
  datetime.datetime(2015, 3, 7, 20, 30, tzinfo=tzlocal())
  </code></pre>
  
  <p>When it's 1:30 UTC it's 21:30 local time, but I'm getting 20:30, which would be correct if we hadn't changed to DST this morning. </p>
  
  <p>I have the feeling I'm missing something obvious.</p>