From a66c741ebda1c7013c268634d4881249ed66cc1c Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 1 Jan 2021 22:28:41 -0800 Subject: [PATCH] (REF) CRM/Member - Change time() to CRM_Utils_Time::time() --- CRM/Member/BAO/Membership.php | 2 +- CRM/Member/Import/Parser.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Member/BAO/Membership.php b/CRM/Member/BAO/Membership.php index 44e0de5fed..16da9bbb35 100644 --- a/CRM/Member/BAO/Membership.php +++ b/CRM/Member/BAO/Membership.php @@ -2713,7 +2713,7 @@ WHERE {$whereClause}"; return $updateMembershipMsg; } - $today = time(); + $today = CRM_Utils_Time::time(); if ($deceasedDate && CRM_Utils_Time::strtotime($deceasedDate) > $today) { return $updateMembershipMsg; } diff --git a/CRM/Member/Import/Parser.php b/CRM/Member/Import/Parser.php index 53d08b75e0..6f6fcd0854 100644 --- a/CRM/Member/Import/Parser.php +++ b/CRM/Member/Import/Parser.php @@ -117,7 +117,7 @@ abstract class CRM_Member_Import_Parser extends CRM_Import_Parser { } if ($statusID) { $this->progressImport($statusID); - $startTimestamp = $currTimestamp = $prevTimestamp = time(); + $startTimestamp = $currTimestamp = $prevTimestamp = CRM_Utils_Time::time(); } while (!feof($fd)) { -- 2.25.1