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

View file

@ -53,7 +53,7 @@ class Application_Common_DateHelper
*/ */
function getWeekStartDate() 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); $startDateTime = new DateTime($startDate);
return $startDateTime->format('Y-m-d H:i:s'); return $startDateTime->format('Y-m-d H:i:s');
} }