From c2a9c201ac9261d037ce307720298c097df7c7e1 Mon Sep 17 00:00:00 2001 From: Zaliqa Date: Thu, 15 Jun 2023 13:04:46 -0400 Subject: [PATCH] [Candidate] Fix wrong comments to avoid confusion in future (#8791) The middle day of the month is used when date format is Y-M, not the first. --- php/libraries/Candidate.class.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php/libraries/Candidate.class.inc b/php/libraries/Candidate.class.inc index 049fb5d6eaa..f82a309ef5c 100644 --- a/php/libraries/Candidate.class.inc +++ b/php/libraries/Candidate.class.inc @@ -289,7 +289,7 @@ class Candidate implements \LORIS\StudyEntities\AccessibleResource, ); } - // Add day as first of the month if Y-m dob format + // Add day as mid of the month if Y-m dob format // This allows insert into sql candidate table if ($dobFormat === '!Y-m') { $edc .= '-15'; @@ -316,7 +316,7 @@ class Candidate implements \LORIS\StudyEntities\AccessibleResource, ); } - // Add day as first of the month if Y-m dob format + // Add day as mid of the month if Y-m dob format // This allows insert into sql candidate table if ($dobFormat === '!Y-m') { $dateOfBirth .= '-15';