From ddaa0b2c7a9a7bae2c70ef060271fa10bef59c59 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sun, 24 Oct 2021 23:04:58 +0800 Subject: One major, multiple minor changes to Database Major: - New update(umb) method as an interface to _update(umb), with convenience and safeguards. Minor: - New exception: UmbrellaValueError - All datetime objects are cast naive - Database._write(umbrellas) raises exception after performing recovery - human_datetime includes seconds in output --- jimbrella/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jimbrella/utils.py') diff --git a/jimbrella/utils.py b/jimbrella/utils.py index f57f8fb..cac8bc9 100644 --- a/jimbrella/utils.py +++ b/jimbrella/utils.py @@ -2,7 +2,7 @@ from datetime import datetime, timedelta, tzinfo def human_datetime(time: datetime) -> str: - return "{:%Y-%m-%d %H:%M}".format(time) + return "{:%Y-%m-%d %H:%M:%S}".format(time) def human_timedelta(delta: timedelta) -> str: -- cgit v1.2.3