title: pytz localize vs datetime replace
body: <p>I'm having some weird issues with pytz's .localize() function. Sometimes it wouldn't make adjustments to the localized datetime:</p>
  
  <p>.localize behaviour:</p>
  
  <pre><code>&gt;&gt;&gt; tz
  &lt;DstTzInfo 'Africa/Abidjan' LMT-1 day, 23:44:00 STD&gt; 
  &gt;&gt;&gt; d
  datetime.datetime(2009, 9, 2, 14, 45, 42, 91421)
  
  &gt;&gt;&gt; tz.localize(d)
  datetime.datetime(2009, 9, 2, 14, 45, 42, 91421, 
                    tzinfo=&lt;DstTzInfo 'Africa/Abidjan' GMT0:00:00 STD&gt;)
  &gt;&gt;&gt; tz.normalize(tz.localize(d))
  datetime.datetime(2009, 9, 2, 14, 45, 42, 91421,
                    tzinfo=&lt;DstTzInfo 'Africa/Abidjan' GMT0:00:00 STD&gt;)
  </code></pre>
  
  <p>As you can see, time has not been changed as a result of localize/normalize operations.
  However, if .replace is used:</p>
  
  <pre><code>&gt;&gt;&gt; d.replace(tzinfo=tz)
  datetime.datetime(2009, 9, 2, 14, 45, 42, 91421, 
                    tzinfo=&lt;DstTzInfo 'Africa/Abidjan' LMT-1 day, 23:44:00 STD&gt;)
  &gt;&gt;&gt; tz.normalize(d.replace(tzinfo=tz))
  datetime.datetime(2009, 9, 2, 15, 1, 42, 91421,
                    tzinfo=&lt;DstTzInfo 'Africa/Abidjan' GMT0:00:00 STD&gt;)
  </code></pre>
  
  <p>Which seems to make adjustments into datetime. </p>
  
  <p>Question is - which is correct and why other's wrong?</p>