Преглед изворни кода

include end day in export of Audit Log

Rintaro Abe пре 1 месец
родитељ
комит
6e184d681b
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      apps/app/src/client/components/Admin/AuditLog/AuditLogExportModal.tsx

+ 3 - 1
apps/app/src/client/components/Admin/AuditLog/AuditLogExportModal.tsx

@@ -88,7 +88,9 @@ const AuditLogExportModalSubstance = ({
       filters.dateFrom = startDate;
       filters.dateFrom = startDate;
     }
     }
     if (endDate != null) {
     if (endDate != null) {
-      filters.dateTo = endDate;
+      const endOfDay = new Date(endDate);
+      endOfDay.setHours(23, 59, 59, 999);
+      filters.dateTo = endOfDay;
     }
     }
 
 
     return filters;
     return filters;