diff --git a/swh/web/common/utils.py b/swh/web/common/utils.py --- a/swh/web/common/utils.py +++ b/swh/web/common/utils.py @@ -158,7 +158,7 @@ return re.sub(sha1_re, r"\1...", ret) -def format_utc_iso_date(iso_date, fmt="%d %B %Y, %H:%M UTC"): +def format_utc_iso_date(iso_date, fmt="%d %B %Y, %H:%M:%S UTC"): """Turns a string representation of an ISO 8601 datetime string to UTC and format it into a more human readable one. diff --git a/swh/web/tests/common/test_utils.py b/swh/web/tests/common/test_utils.py --- a/swh/web/tests/common/test_utils.py +++ b/swh/web/tests/common/test_utils.py @@ -87,7 +87,7 @@ def test_format_utc_iso_date(): assert ( utils.format_utc_iso_date("2017-05-04T13:27:13+02:00") - == "04 May 2017, 11:27 UTC" + == "04 May 2017, 11:27:13 UTC" )