title: Python 3.7: converting a string with different timezone into date
body: <p>I am trying to convert a string into date format in Python.</p>
  
  <p>I am using following statement</p>
  
  <pre><code>datetime_obj = datetime.datetime.strptime("Sun Aug 19 16:24:31 PDT 2018", "%a %b %d %H:%M:%S %Z %Y")
  </code></pre>
  
  <p>However, I get an error - </p>
  
  <blockquote>
    <p><em>ValueError: time data 'Sun Aug 19 16:24:31 PDT 2018' does not match format '%a %b %d %H:%M:%S %Z %Y'</em></p>
  </blockquote>
  
  <p>If I remove the timezone from the date string and the format string, the code works perfect. Which leads me to believe that the issue is related to the timezone but I am not sure what actions should be taken. 
  I am in eastern timezone and the time zone in the string is in Pacific timezone. </p>
  
  <p>Appreciate any help on this.</p>