Trying to convert a string to datetime and save it to db. The string specifies the timezone, but strptime doesn't accept the %z option. 
datetime.strptime("Tue Feb 14 2017 15:30:01 GMT-0500", "%a %b %d %Y %H:%M:%S GMT%z")
ValueError: 'z' is a bad directive in format '%a %b %d %Y %H:%M:%S GMT%z'
 
    