From 8b6074a75fb333cf6a627cf732e4a27075901b83 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 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")); } } -- 2.25.1