mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-05 21:15:47 +01:00
[utils] unified_timestamp: Return int values (#13796)
Authored by: doe1080
This commit is contained in:
parent
ef103b2d11
commit
6be26626f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue