CC-3957: Make Schedule Widgets show future Sunday instead of past Sunday
- bug fix
This commit is contained in:
parent
22453f3820
commit
548a6ce16a
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue