title: Python date time comparing with < return wrong result
body: <p>I am creating simple RSS reader. Storing date of last read newest entry in <code>newest_entry_datetime</code> and then when reading again channel I am comparing entry time to <code>newest_entry_datetime</code> with <code>&lt;</code> symbol as I read that Python is smart enough to recognize and compare datetime.</p>
  
  <p>It works on the same day when time part is changing but on the next day newest date is implemented as old.</p>
  
  <pre><code>import datetime
  import locale
  
  #locale.setlocale(locale.LC_ALL, 'English_United States.1252')
  
  newest_entry_datetime = 'Thu, 21 Dec 2017 16:02:03 CET'
  entry_published = 'Fri, 22 Dec 2017 08:19:15 CET'
  
  #dt_newest = datetime.datetime.strptime (newest_entry_datetime, "%a, %d %b %Y %H:%M:%S %Z" )
  
  if (entry_published &lt;= newest_entry_datetime):
      print('Entry date is older')
  else:
      print('Entry date is NEW')
  </code></pre>
  
  <p>With such code I am getting result: <code>"Entry date is older"</code> which is wrong.</p>
  
  <p>Second idea was to convert datestamps to datetime but I am getting:</p>
  
  <pre><code>ValueError: time data 'Thu, 21 Dec 2017 16:02:03 CET' does not match format '%a, %d %b %Y %H:%M:%S %Z'
  </code></pre>
  
  <p>even if I will change locale to US.</p>
  
  <p>No clue how to do that correctly. Could you please help?</p>