(REF) CRM/Member - Change time() to CRM_Utils_Time::time()
authorTim Otten <totten@civicrm.org>
Sat, 2 Jan 2021 06:28:41 +0000 (22:28 -0800)
committerTim Otten <totten@civicrm.org>
Fri, 8 Jan 2021 05:25:43 +0000 (21:25 -0800)
CRM/Member/BAO/Membership.php
CRM/Member/Import/Parser.php

index 44e0de5fedc5dac7e826ee61ceb4eeaad07bdee9..16da9bbb35383efc6e167ccbc2b4b3c1d4af338a 100644 (file)
@@ -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;
       }
index 53d08b75e0e4dbb4358481373819d5466ee3feec..6f6fcd0854eacbcb9589d1408323ea190d833613 100644 (file)
@@ -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)) {