From 47e1cfc3bf24dfca71cb2ce924d7a21ac3933da9 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 1 Mar 2019 11:33:13 +1300 Subject: [PATCH] dev/membership#10 fix incorrect validation error saying Start date must be the same or later than Member since This problem is because both dates exclude time but the default setting includes it - leading to a comparison of a datetime with a date+midnight time --- CRM/Member/Form/Membership.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index e316e4201b..ea63606ec4 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -417,7 +417,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { //setting default join date if there is no join date if (empty($defaults['join_date'])) { - $defaults['join_date'] = date('Y-m-d H:i:s'); + $defaults['join_date'] = date('Y-m-d'); } if (!empty($defaults['membership_end_date'])) { -- 2.25.1