+ if not 'timestamp' in video:
+ if soup.find_all(datetime=True):
+ xmldate_str = soup.find_all(datetime=True)[0].attrs['datetime']
+ video['timestamp'] = datetime(*feedparser._parse_date_w3dtf(xmldate_str)[:6]) #naive in utc
+ video['timestamp'] = video['timestamp'].replace(tzinfo=timezone.utc).astimezone(tz=None) #convert to local time