Skip to content

A feature-rich command-line audio/video downloader

[utils] `unified_timestamp`: Return `int` values (#13796)

doe10806be26626f7cf
diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py
index c91a06e9a6..7d79f417fa 100644
--- a/yt_dlp/utils/_utils.py
+++ b/yt_dlp/utils/_utils.py
@@ -1285,7 +1285,7 @@ def unified_timestamp(date_str, day_first=True):
timetuple = email.utils.parsedate_tz(date_str)
if timetuple:
- return calendar.timegm(timetuple) + pm_delta * 3600 - timezone.total_seconds()
+ return calendar.timegm(timetuple) + pm_delta * 3600 - int(timezone.total_seconds())
@partial_application