ya3

ya3 -- yet another appointment application
Log | Files | Refs

commit f08a8e52b210a84561e602658019b6bbe0d8bc7a
parent 9325442532283a59d47fc768b8ea7a1331e1c88e
Author: Matthias Balk <matthias.balk@fotopuzzle.de>
Date:   Mon, 17 Sep 2018 16:53:58 +0200

Bugfix: start and end may be just 'date' instead of 'datetime'

Diffstat:
Mya3 | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/ya3 b/ya3 @@ -10,6 +10,8 @@ from dateutil.tz import gettz def conv2local(dt): + if not isinstance(dt, datetime): + return datetime(dt.year, dt.month, dt.day, tzinfo=gettz()) if dt.tzinfo is None: return datetime(dt.year, dt.month, dt.day, dt.hour, dt.minute, dt.second,