logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: e45b31d9bd824b01142d52b0de0d6823a49b2af6
parent 5a25f396530d32ae66611c271b70b6e4c08ba602
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Mon, 10 Mar 2014 13:12:57 +0100

[vevo] Interpret date as UTC instead of local time

Diffstat:

Myoutube_dl/extractor/vevo.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/vevo.py b/youtube_dl/extractor/vevo.py @@ -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'],