Merge branch '4.7.21-rc' into master
[civicrm-core.git] / CRM / Member / Page / DashBoard.php
index 23b622e5024bb59bcc9b02816e47e8d0efc562eb..84ace2eba77cc4795a31675dc5a9cd41f9d24c8d 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
  * $Id$
  *
  */
@@ -428,9 +428,9 @@ class CRM_Member_Page_DashBoard extends CRM_Core_Page {
 
     $this->assign('membershipSummary', $membershipSummary);
     $this->assign('totalCount', $totalCount);
-    $this->assign('month', date('F', $monthStartTs));
+    $this->assign('month', CRM_Utils_Date::customFormat($monthStartTs, '%B'));
     $this->assign('year', date('Y', $monthStartTs));
-    $this->assign('premonth', date('F', strtotime($preMonth)));
+    $this->assign('premonth', CRM_Utils_Date::customFormat($preMonth, '%B'));
     $this->assign('currentMonth', date('F'));
     $this->assign('currentYear', date('Y'));
     $this->assign('isCurrent', $isCurrentMonth);