mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-14 01:58:28 +02:00
Adding year to HELPDESK_FOLLOWUP_TIME_SPENT_EXCLUDE_HOLIDAYS dates
This commit is contained in:
@ -1046,7 +1046,7 @@ class FollowUp(models.Model):
|
||||
start_day_time = middle_day_time.replace(hour=0, minute=0, second=0)
|
||||
end_day_time = middle_day_time.replace(hour=23, minute=59, second=59)
|
||||
|
||||
if (start_day_time.strftime("%m-%d") not in holidays and
|
||||
if (start_day_time.strftime("%Y-%m-%d") not in holidays and
|
||||
prev_status not in exclude_statuses and
|
||||
self.ticket.queue.slug not in exclude_queues):
|
||||
time_spent_seconds += daily_time_spent_calculation(start_day_time, end_day_time, open_hours)
|
||||
|
Reference in New Issue
Block a user