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

This commit is contained in:
Naomi Aro 2011-11-24 16:20:17 +01:00
parent 5c7828c1f5
commit e68d7afa3f
1 changed files with 1 additions and 1 deletions

View File

@ -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'] == "") {