There is an additional :one in your time zone format , inside of which a format mismatch error occurs, you can first remove the last one :from the line and then analyze it:
import re
from datetime import datetime
x1 = re.sub(r":(?=[^:]+$)", "", x)
datetime.strptime(x1, '%a %b %d %H:%M:%S %Z%z %Y').strftime('%s')
source
share