From: Tim Otten Date: Fri, 20 May 2016 00:48:28 +0000 (-0700) Subject: CRM-16642 - Compute timestamps using 24-hour clock X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8b6074a75fb333cf6a627cf732e4a27075901b83;p=civicrm-core.git CRM-16642 - Compute timestamps using 24-hour clock `Ymdhis` is silly here. Use `YmdHis`. This was causing test results to vary based on they were run. --- diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index 4b0ca89b86..af97a8b58f 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -826,7 +826,7 @@ ORDER BY gc.contact_id, g.children * @return string */ public static function getCacheInvalidDateTime() { - return date('Ymdhis', strtotime("-" . self::smartGroupCacheTimeout() . " Minutes")); + return date('YmdHis', strtotime("-" . self::smartGroupCacheTimeout() . " Minutes")); } /** @@ -837,7 +837,7 @@ ORDER BY gc.contact_id, g.children * @return string */ public static function getRefreshDateTime() { - return date('Ymdhis', strtotime("+ " . self::smartGroupCacheTimeout() . " Minutes")); + return date('YmdHis', strtotime("+ " . self::smartGroupCacheTimeout() . " Minutes")); } }