From 419e086e63eaaa3c6cd03019377de24beb47585a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 1 Oct 2021 09:34:09 +0200 Subject: worktime: behaviour at reset points --- overlays/worktime/worktime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'overlays/worktime') diff --git a/overlays/worktime/worktime.py b/overlays/worktime/worktime.py index c7b013f9..678c0d69 100755 --- a/overlays/worktime/worktime.py +++ b/overlays/worktime/worktime.py @@ -166,7 +166,7 @@ class Worktime(object): stripped_line = line.strip() reset_date = datetime.strptime(stripped_line, date_format).replace(tzinfo=tzlocal()) - if reset_date > start_date and reset_date < end_date: + if reset_date > start_date and reset_date <= end_date: start_date = reset_date except IOError as e: if e.errno != 2: -- cgit v1.2.3