Support 'month' as well as 'monthly'.

This commit is contained in:
James Cole 2014-11-17 23:09:52 +01:00
parent f8ea0f971d
commit ad69011ac5

View File

@ -73,6 +73,7 @@ class Date
case 'weekly':
$currentEnd->addWeek()->subDay();
break;
case 'month':
case 'monthly':
$currentEnd->addMonth()->subDay();
break;
@ -110,6 +111,7 @@ class Date
case 'weekly':
$date->startOfWeek();
break;
case 'month':
case 'monthly':
$date->startOfMonth();
break;