fix: update comment

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-09-23 16:14:12 +05:30
parent b127948317
commit ce3b15c3e1
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -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)