1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-22 19:42:58 +08:00

[vevo] Interpret date as UTC instead of local time

This commit is contained in:
Philipp Hagemeister 2014-03-10 13:12:57 +01:00
parent 5a25f39653
commit e45b31d9bd

View File

@ -169,7 +169,7 @@ class VevoIE(InfoExtractor):
timestamp_ms = int(self._search_regex(
r'/Date\((\d+)\)/', video_info['launchDate'], 'launch date'))
upload_date = datetime.datetime.fromtimestamp(timestamp_ms // 1000)
upload_date = datetime.datetime.utcfromtimestamp(timestamp_ms // 1000)
return {
'id': video_id,
'title': video_info['title'],