diff --git a/harold/plugins/deploy.py b/harold/plugins/deploy.py index 9c695c2..506a0c6 100644 --- a/harold/plugins/deploy.py +++ b/harold/plugins/deploy.py @@ -210,13 +210,13 @@ def is_working_hours(self): date = datetime.date.today() time = datetime.datetime.now().time() - # never before 9am + # always after 9am if time < datetime.time(9, 0): return False if date.weekday() in (0, 1, 2, 3): - # monday through thursday, 9-5 - return time < datetime.time(17, 0) + # monday through thursday, before 4pm + return time < datetime.time(16, 0) else: # no work on the weekend return False