From fdb9aaf416acce0b1663c1f81752626fda658ca6 Mon Sep 17 00:00:00 2001 From: Elyse <26639800+elyse0@users.noreply.github.com> Date: Thu, 9 Mar 2023 17:19:39 -0600 Subject: [PATCH] Use local timezone for download sections --- yt_dlp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index b52aa1e9e3..3145a6f1b6 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -331,7 +331,7 @@ def parse_timestamp(x): if re.match(r'[\d:]+', x): return parse_duration(x) - return datetime_from_str(x, precision='second').timestamp() + return datetime_from_str(x, precision='second', use_utc=False).timestamp() chapters, ranges = [], [] for regex in value or []: