From 548a6ce16a4e6c87f4b508a019ceceeee42e2fe9 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 12 Jun 2012 17:49:34 -0400 Subject: [PATCH] CC-3957: Make Schedule Widgets show future Sunday instead of past Sunday - bug fix --- airtime_mvc/application/common/DateHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/common/DateHelper.php b/airtime_mvc/application/common/DateHelper.php index 3f7e29006..84c5feb0c 100644 --- a/airtime_mvc/application/common/DateHelper.php +++ b/airtime_mvc/application/common/DateHelper.php @@ -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'); }