$hours = json_decode($this->freq_hour);
- //$dayAry = json_decode($this->freq_day);
- if (!$hours) {
- $hours = array(date('H:i', strtotime($this->dtstart)));
- //print_r($hours);
- }
$days = json_decode($this->freq_day);
//print_r($days);
- for ($day = date('Y-m-d', strtotime($start));
- strtotime($day) < strtotime($end);
- $day = date('Y-m-d', strtotime("$day + 1 DAY")))
- {
+ for ($day = date('Y-m-d', strtotime($start));strtotime($day) < strtotime($end); $day = date('Y-m-d', strtotime("$day + 1 DAY"))){
print_r($day);
// skip days not accounted for..
if (!in_array(date('N', strtotime($day)), $days)) {