title: Have a correct datetime with correct timezone
body: <p>I am using <code>feedparser</code> in order to get RSS data.
  Here is my code :</p>
  
  <pre><code>&gt;&gt;&gt; import datetime
  &gt;&gt;&gt; import time
  &gt;&gt;&gt; import feedparser
  
  &gt;&gt;&gt; d=feedparser.parse("http://.../rss.xml")
  
  &gt;&gt;&gt; datetimee_rss = d.entries[0].published_parsed
  
  &gt;&gt;&gt; datetimee_rss
  time.struct_time(tm_year=2015, tm_mon=5, tm_mday=8, tm_hour=16, tm_min=57, tm_sec=39, tm_wday=4, tm_yday=128, tm_isdst=0)
  
  &gt;&gt;&gt; datetime.datetime.fromtimestamp(time.mktime(datetimee_rss))
  datetime.datetime(2015, 5, 8, 17, 57, 39)
  </code></pre>
  
  <p>In my timezone (FR), the actual date is  <code>May, 8th, 2015 18:57</code>.</p>
  
  <p>In the RSS XML, the value is <code>&lt;pubDate&gt;Fri, 08 May 2015 18:57:39 +0200&lt;/pubDate&gt;</code></p>
  
  <p>When I parse it into datetime, I got <code>2015, 5, 8, 17, 57, 39</code>.</p>
  
  <p>How to have <code>2015, 5, 8, 18, 57, 39</code> without dirty hack, but simply by configuring the correct timezone ?</p>
  
  <p>EDIT:</p>
  
  <p>By doing :</p>
  
  <pre><code>&gt;&gt;&gt; from pytz import timezone
  
  &gt;&gt;&gt; datetime.datetime.fromtimestamp(time.mktime(datetimee_rss),tz=timezone('Euro
  pe/Paris'))
  datetime.datetime(2015, 5, 8, 17, 57, 39, tzinfo=&lt;DstTzInfo 'Europe/Paris' CEST+2:00:00 DST&gt;)
  </code></pre>
  
  <p>I got something nicer, however, it doesn't seem to work in the rest of the script, I got plenty of <code>TypeError: can't compare offset-naive and offset-aware datetimes</code> error.</p>