CC-3102 : Show Editing, how it uses day of the week

This commit is contained in:
Naomi Aro 2011-11-24 11:56:24 +01:00
parent 37c89d96d9
commit 5c7828c1f5

View file

@ -856,7 +856,8 @@ 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.
$startDow = gmdate("w", $utcStartDateTime->getTimestamp());
//DOW is in the local timezone.
$startDow = date("w", $startDateTime);
if (!$data['add_show_repeats']) {
$data['add_show_day_check'] = array($startDow);
} else if ($data['add_show_repeats'] && $data['add_show_day_check'] == "") {