[vevo] Interpret date as UTC instead of local time
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 10 Mar 2014 12:12:57 +0000 (13:12 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 10 Mar 2014 12:12:57 +0000 (13:12 +0100)
youtube_dl/extractor/vevo.py

index fa147a5757df04ca69bac2e3dc6054fe6d2a7797..98a663496303f4e8e357e8816773e9a5a27479cd 100644 (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'],