On 31.03. only months with 31 days have been shown in this field.
On 01.04. the problem disappeared. But I expect it will be there again on 31.05.
Same problem in version 7.x-1.x-dev

Comments

ykyuen’s picture

Version: 6.x-2.0-beta4 » 7.x-1.x-dev
Status: Active » Fixed

This problem occurs on 7.x version also. it is becoz of the strtotime(+1 month) problem.

To fix the problem, edit the hotel_booking.calendars.inc line 73.

for ($i = 0; $i < 12; $i++ ) {
    //$new_date = strtotime('+ '. $i .' months');
    $new_date = strtotime('first day of + '. $i .' months');
    $items['node/'. $node->nid .'/availability/'. date('Y', $new_date) .'/'.
           date('n', $new_date)] =
    t(date('F', $new_date), array(), array('context' => 'month_name')) .' '. date('Y', $new_date);
  }

The 6.x version could be fixed in similar way.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.