title: TypeError: string indices must be integers datetime
body: <p>I'm trying to convert a datetime, but I can't figure out how to get my string to be an integer. I've tried adding in [0] after (entry["created_at"] but not luck</p>
  
  <p><strong>Code:</strong></p>
  
  <p><code>$</code>for item in data:</p>
  
  <pre><code>   `$` convertedTweet = {}
  
  for entry in item:
     convertedTweet["created_at"] = item["created_at"]
     fmt = '%Y-%m-%dT%H:%M:%SZ'
     temp = datetime.strptime(entry['created_at'],'%a %b %d %H:%M:%S +0000 %Y').replace(tzinfo=pytz.UTC)
     print temp.strftime(fmt)
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>temp = datetime.strptime(entry['created_at'],'%a %b %d %H:%M:%S +0000 %Y').replace(tzinfo=pytz.UTC)
  TypeError: string indices must be integers
  </code></pre>