The calendar block that uses Date does not update its url after the user click next or previous month: it remains as June (as uses now in June). All the urls for dates, the next and prev arrows in the Calendar block however can correctly update accordingly. ONLY the title of month has the wrong and old month (current month). I am trying to fix it at my local computer. The potential bug is in the theme.inc within Date > theme, basically it is closely related to the variable $url within this func theme_date_nav_title:
case 'month':
$format = !empty($format) ? $format : (empty($view->date_info->mini) ? 'F Y' : 'F Y');
$title = date_format_date($view->date_info->min_date, 'custom', $format);
$url = $view->date_info->url .'/'. $view->date_info->year .'-'. date_pad($view->date_info->month);
break;

Could you or anybody help me with fixing this please? Thanks! Huj

Comments

Morn’s picture

Status: Active » Closed (duplicate)

Same as http://drupal.org/node/408190 (fix at #8)

hujia’s picture

That works!! Thanks a lot. An accompanying issue however is:

if you click on the prev. or next navigation arrow and go to another month, like 09/2009 or 06/2009, rather than the current month (like 07/2009 now), and then click on any date or the month (which is fixed by #408190 fix) in the title of Mini Calendar Block, the content is loaded correctly for that date or month, but then the Mini Calendar will always jump back to the current month unexpectedly. Is it possible to keep that month one just navigates to? Thanks again, Huj