From 54ef9f2b03c91d3d60e0ea2a15b794732c459579 Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Thu, 24 Nov 2011 17:10:49 +0100 Subject: [PATCH] CC-3102 : Show Editing, how it uses day of the week not sure if this change should be here anymore yet. --- airtime_mvc/application/models/Show.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/airtime_mvc/application/models/Show.php b/airtime_mvc/application/models/Show.php index 9dbd8b6ec..799c98e08 100644 --- a/airtime_mvc/application/models/Show.php +++ b/airtime_mvc/application/models/Show.php @@ -856,8 +856,7 @@ class Application_Model_Show { //What we are doing here is checking if the show repeats or if //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->format('Y-m-d')); + $startDow = gmdate("w", $utcStartDateTime->getTimestamp()); if (!$data['add_show_repeats']) { $data['add_show_day_check'] = array($startDow); } else if ($data['add_show_repeats'] && $data['add_show_day_check'] == "") {