소스 검색

[vevo] Interpret date as UTC instead of local time

Philipp Hagemeister 11 년 전
부모
커밋
e45b31d9bd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      youtube_dl/extractor/vevo.py

+ 1 - 1
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'],