From acff69f0dca896cc22cbbfe159be391ee6950004 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Mon, 18 Nov 2013 18:13:18 +0530 Subject: [PATCH] CRM-13784 : set proper fiscal end date --- CRM/Contribute/Page/DashBoard.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Contribute/Page/DashBoard.php b/CRM/Contribute/Page/DashBoard.php index 8e70cd0192..b85c83c58e 100644 --- a/CRM/Contribute/Page/DashBoard.php +++ b/CRM/Contribute/Page/DashBoard.php @@ -60,7 +60,9 @@ class CRM_Contribute_Page_DashBoard extends CRM_Core_Page { 'now', 'yearDate', 'monthDate') as $date) { $$date = $dates[$date]; } - $yearNow = $yearDate + 10000; + // fiscal years end date + $yearNow = date('Ymd', strtotime('+1 year -1 day', strtotime($yearDate))); + foreach ($prefixes as $prefix) { $aName = $prefix . 'ToDate'; $dName = $prefix . 'Date'; -- 2.25.1