1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-07-27 07:38:30 +00:00

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

Authored by: doe1080
This commit is contained in:
doe1080 2025-07-22 06:59:13 +09:00 committed by GitHub
parent ef103b2d11
commit 6be26626f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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