Archived
Making slideshow work also on sundays.
This commit is contained in:
1 parent
14b630429c
commit
b90ff210ff
1 file changed
+2
-1
@@ -28,7 +28,8 @@ class DisplayTime extends AppModel
|
||||
|
||||
function filterByDisplayTime($ids)
|
||||
{
|
||||
$timeofweek = time() - strtotime('this week midnight');
|
||||
$timeofweek = time() - strtotime('this week midnight'); // Fucks up infoscreen every sunday
|
||||
$timeofweek = time() - strtotime(date('o-\\WW')); // {isoYear}-W{isoWeekNumber}
|
||||
|
||||
$tmp = $this->find('all', array('fields'=>array('slide_id'), 'conditions'=>array('DisplayTime.slide_id'=>$ids,'DisplayTime.start <= '=>$timeofweek, 'DisplayTime.stop >= '=>$timeofweek)));
|
||||
|
||||
|
||||
Reference in new issue
Block a user