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:
parent
ef103b2d11
commit
6be26626f7
@ -1285,7 +1285,7 @@ def unified_timestamp(date_str, day_first=True):
|
|||||||
|
|
||||||
timetuple = email.utils.parsedate_tz(date_str)
|
timetuple = email.utils.parsedate_tz(date_str)
|
||||||
if timetuple:
|
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
|
@partial_application
|
||||||
|
Loading…
Reference in New Issue
Block a user