Skip to content
Snippets Groups Projects
Commit 1c95bba8 authored by jaapjansma's avatar jaapjansma
Browse files

fixed #24 period was calculated wrongly

parent c0390f0b
No related branches found
No related tags found
No related merge requests found
......@@ -36,11 +36,11 @@ class CRM_CivirulesConditions_Utils_Period {
return $date;
break;
case 'last 12 months':
$date->modify('12 months');
$date->modify('-12 months');
return $date;
break;
case 'last 13 months':
$date->modify('13 months');
$date->modify('-13 months');
return $date;
break;
case 'this year':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment