From 315eef7baef732b837d85e8e2171e44879c2ac37 Mon Sep 17 00:00:00 2001 From: JKingsnorth Date: Wed, 15 Apr 2015 10:48:23 +0100 Subject: [PATCH] CRM-16227: Change last month filter to last 30 days --- CRM/Core/Form/Date.php | 2 +- CRM/Utils/Date.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Form/Date.php b/CRM/Core/Form/Date.php index adca08b323..5fce6cddd9 100644 --- a/CRM/Core/Form/Date.php +++ b/CRM/Core/Form/Date.php @@ -172,7 +172,7 @@ class CRM_Core_Form_Date { 'ending_2.year' => ts('Last 2 Years'), 'ending.year' => ts('Last 12 Months'), 'ending.quarter' => ts('Last 3 Months'), - 'ending.month' => ts('Last Month'), + 'ending.month' => ts('Last 30 days'), 'ending.week' => ts('Last 7 days'), 'previous.day' => ts('Yesterday'), 'this.year' => ts('This Year'), diff --git a/CRM/Utils/Date.php b/CRM/Utils/Date.php index 73964961e3..f58994f6b3 100644 --- a/CRM/Utils/Date.php +++ b/CRM/Utils/Date.php @@ -1395,7 +1395,7 @@ class CRM_Utils_Date { $to['Y'] = $now['year']; $to['H'] = 23; $to['i'] = $to['s'] = 59; - $from = self::intervalAdd('month', -1, $to); + $from = self::intervalAdd('day', -30, $to); $from = self::intervalAdd('second', 1, $from); break; -- 2.25.1