CC-3957: Make Schedule Widgets show future Sunday instead of past Sunday

- fixed
This commit is contained in:
James 2012-06-11 16:42:12 -04:00
parent 6316c23b25
commit 06d90c53aa
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ class Application_Common_DateHelper
*/
function getWeekStartDate()
{
$startDate = date('w') == 0 ? date('Y-m-d') : date('Y-m-d', strtotime('last sunday'));
$startDate = date('w') == 0 ? date('Y-m-d') : date('Y-m-d', strtotime('monday'));
$startDateTime = new DateTime($startDate);
return $startDateTime->format('Y-m-d H:i:s');
}