From 5264f674467cbf311013fca1c071844303b5dfd4 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Sat, 21 Oct 2023 00:52:05 +0700 Subject: [PATCH] no message --- Services/CandidateService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/CandidateService.cs b/Services/CandidateService.cs index 8ce9b3e..e25820f 100644 --- a/Services/CandidateService.cs +++ b/Services/CandidateService.cs @@ -664,7 +664,7 @@ namespace BMA.EHR.Recurit.Exam.Service.Services EditorCondition = exam.EditorCondition, EditorConfirm = exam.EditorConfirm, Position = candidatePosition == null ? false : true, - CanRegister = exam.RegisterStartDate == null || exam.RegisterEndDate == null ? true : exam.RegisterStartDate.Value.Date <= DateTime.Now.Date && exam.RegisterEndDate.Value.Date >= DateTime.Now.Date, + CanRegister = exam.RegisterStartDate == null || exam.RegisterEndDate == null ? true :DateOnly.FromDateTime(exam.RegisterStartDate.Value) <= DateOnly.FromDateTime(DateTime.Now) && DateOnly.FromDateTime(exam.RegisterEndDate.Value) >= DateOnly.FromDateTime(DateTime.Now), RegisterEndDate = exam.RegisterEndDate, RegisterStartDate = exam.RegisterStartDate, };