summaryrefslogtreecommitdiff
path: root/jimbrella/utils.py
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-10-24 23:04:58 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-10-24 23:04:58 +0800
commitddaa0b2c7a9a7bae2c70ef060271fa10bef59c59 (patch)
tree39e822bc791696b33b5609e020207f5795972b24 /jimbrella/utils.py
parent8a9e80d9a2d823c90ccbbdbca268e6c65a8ac31b (diff)
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
Diffstat (limited to 'jimbrella/utils.py')
-rw-r--r--jimbrella/utils.py2
1 files changed, 1 insertions, 1 deletions
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: