summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-10-01 09:34:09 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-10-01 09:34:09 +0200
commit419e086e63eaaa3c6cd03019377de24beb47585a (patch)
tree52d034d596cc4cbc9d15a9ee11c87fd27e7f7ee8 /overlays
parent2ab0f45b3ea168b70475f3cf2478e68e6ac615eb (diff)
downloadnixos-419e086e63eaaa3c6cd03019377de24beb47585a.tar
nixos-419e086e63eaaa3c6cd03019377de24beb47585a.tar.gz
nixos-419e086e63eaaa3c6cd03019377de24beb47585a.tar.bz2
nixos-419e086e63eaaa3c6cd03019377de24beb47585a.tar.xz
nixos-419e086e63eaaa3c6cd03019377de24beb47585a.zip
worktime: behaviour at reset points
Diffstat (limited to 'overlays')
-rwxr-xr-xoverlays/worktime/worktime.py2
1 files changed, 1 insertions, 1 deletions
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):
166 stripped_line = line.strip() 166 stripped_line = line.strip()
167 reset_date = datetime.strptime(stripped_line, date_format).replace(tzinfo=tzlocal()) 167 reset_date = datetime.strptime(stripped_line, date_format).replace(tzinfo=tzlocal())
168 168
169 if reset_date > start_date and reset_date < end_date: 169 if reset_date > start_date and reset_date <= end_date:
170 start_date = reset_date 170 start_date = reset_date
171 except IOError as e: 171 except IOError as e:
172 if e.errno != 2: 172 if e.errno != 2: