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');
}

View File

@ -302,7 +302,7 @@ class ApiController extends Zend_Controller_Action
$dayStart = $date->getWeekStartDate();
$utcDayStart = Application_Common_DateHelper::ConvertToUtcDateTimeString($dayStart);
$dow = array("sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday");
$dow = array("monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday");
$result = array();
for ($i=0; $i<7; $i++){