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

Authored by: doe1080
pull/13800/head
doe1080 4 days ago committed by GitHub
parent ef103b2d11
commit 6be26626f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save