From 3e6fc3fdb38b54ff4695b972aa90b1e8d7a3309c Mon Sep 17 00:00:00 2001 From: Chase Tucker Date: Tue, 14 May 2024 14:01:25 -0700 Subject: [PATCH] Assignments late in report after 15 days --- Fab2ApprovalSystem/Controllers/TrainingController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fab2ApprovalSystem/Controllers/TrainingController.cs b/Fab2ApprovalSystem/Controllers/TrainingController.cs index 4db3045..809a2d6 100644 --- a/Fab2ApprovalSystem/Controllers/TrainingController.cs +++ b/Fab2ApprovalSystem/Controllers/TrainingController.cs @@ -743,7 +743,7 @@ namespace Fab2ApprovalSystem.Controllers string DateAssigned = assignmentDate.HasValue ? assignmentDate.Value.ToString("MM/dd/yyyy") : ""; - if (assignmentDate.HasValue && (DateTime.Now.Date - assignmentDate).Value.TotalDays >= 5) + if (assignmentDate.HasValue && (DateTime.Now.Date - assignmentDate.Value.Date).TotalDays > 15) { trainingSection += "" + assignment.FullName + "" + DateAssigned + ""; }