Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-5631

Fix Month calculation for Relative Dates in Report

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Fix month calculation in relativeToAbsolute method in CRM/Utils/Date.php

      If current month is Jan, and report is run with filter criteria Date = Previous Month/ Previous 2 Months, etc
      throws up warnings :

      • warning: cal_days_in_month() [function.cal-days-in-month]: invalid date. in /home/yashodha/svn/civicrm/CRM/Utils/Date.php on line 1032.

        Attachments

          Activity

            People

            • Assignee:
              sushant Sushant Paste
              Reporter:
              yashodha Yashodha Chaku
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: