From e68d7afa3f3a40b1162c405eff59a1c333e43139 Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Thu, 24 Nov 2011 16:20:17 +0100 Subject: [PATCH] CC-3102 : Show Editing, how it uses day of the week --- airtime_mvc/application/models/Show.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index 1c5f8880e..9dbd8b6ec 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -857,7 +857,7 @@ class Application_Model_Show { //any repeating days have been checked. If not, then by default //the "selected" DOW is the initial day. //DOW is in the local timezone. - $startDow = date("w", $startDateTime); + $startDow = date("w", $startDateTime->format('Y-m-d')); if (!$data['add_show_repeats']) { $data['add_show_day_check'] = array($startDow); } else if ($data['add_show_repeats'] && $data['add_show_day_check'] == "") {