From e7c34253fecd872f13b2d4daf2b5131453322c0b Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 23 Feb 2022 20:20:56 +0800 Subject: str->datetime conversion --- jimbrella/routine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jimbrella') diff --git a/jimbrella/routine.py b/jimbrella/routine.py index bb5fe82..e120517 100644 --- a/jimbrella/routine.py +++ b/jimbrella/routine.py @@ -129,7 +129,7 @@ def process_overdue(db: Umbrellas): sms.remind_overdue( umb["tenant_phone"], umb["tenant_name"], - human_datetime(umb["lent_at"]), + human_datetime(isoparse(umb["lent_at"])), umb["id"], ) -- cgit v1.2.3