From: Ruben Rodriguez Date: Thu, 14 Jul 2016 02:28:12 +0000 (-0400) Subject: Replaced CRM_Utils_Date::getUTCTime() with date('YmdHis'); X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=152772454a130b0396f56ec0a184031308628b25;p=civicrm-core.git Replaced CRM_Utils_Date::getUTCTime() with date('YmdHis'); Removed unused variable $refreshTime --- diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index 2bd02dc699..91acd65d9c 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -329,10 +329,7 @@ WHERE id IN ( $groupIDs ) $refresh = NULL; $smartGroupCacheTimeout = self::smartGroupCacheTimeout(); - - - $now = CRM_Utils_Date::getUTCTime(); - $refreshTime = CRM_Utils_Date::getUTCTime($smartGroupCacheTimeout * 60); + $now = date('YmdHis'); // HACK: Hardcoded delete limit. $deleteLimit = 1000;