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