From 189d2597929fc6d39f2f587ec5696f74b0ea8775 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 19 May 2016 17:48:28 -0700 Subject: [PATCH] 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. --- CRM/Contact/BAO/GroupContactCache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contact/BAO/GroupContactCache.php b/CRM/Contact/BAO/GroupContactCache.php index 7f91329460..7174c55f48 100644 --- a/CRM/Contact/BAO/GroupContactCache.php +++ b/CRM/Contact/BAO/GroupContactCache.php @@ -710,7 +710,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")); } /** @@ -721,7 +721,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")); } } -- 2.25.1