CC-3957: Make Schedule Widgets show future Sunday instead of past Sunday
- bug fix
This commit is contained in:
parent
22453f3820
commit
548a6ce16a
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue