diff --git a/flask/helpers.py b/flask/helpers.py index 1b8e323b..b0e3de94 100644 --- a/flask/helpers.py +++ b/flask/helpers.py @@ -996,7 +996,7 @@ def total_seconds(td): :returns: number of seconds :rtype: int """ - return td.days * 60 * 60 * 24 + td.seconds + return int(td.total_seconds()) def is_ip(value):