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

- bug fix
This commit is contained in:
James 2012-06-12 17:49:34 -04:00
parent 22453f3820
commit 548a6ce16a
1 changed files with 1 additions and 1 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('monday'));
$startDate = date('w') == 0 ? date('Y-m-d') : date('Y-m-d', strtotime('monday this week'));
$startDateTime = new DateTime($startDate);
return $startDateTime->format('Y-m-d H:i:s');
}