From ce3b15c3e1dfec869dcf95c8a2284614706da30d Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Mon, 23 Sep 2024 16:14:12 +0530 Subject: [PATCH] fix: update comment Signed-off-by: Akhil Narang --- frappe/utils/data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/utils/data.py b/frappe/utils/data.py index b1f5e85e68..eeadfbdf24 100644 --- a/frappe/utils/data.py +++ b/frappe/utils/data.py @@ -2443,8 +2443,8 @@ class UnicodeWithAttrs(str): def format_timedelta(o: datetime.timedelta) -> str: - # mariadb allows a wide diff range - https://mariadb.com/kb/en/time/ - # but frappe doesnt - i think via babel : only allows 0..23 range for hour + # MariaDB allows a wide range - https://mariadb.com/kb/en/time/ + # but Frappe doesn't - I think via babel : only allows 0..23 range for hour total_seconds = o.total_seconds() hours, remainder = divmod(total_seconds, 3600) minutes, seconds = divmod(remainder, 60)