Index: monthgroup.inc =================================================================== --- monthgroup.inc (revision 135) +++ monthgroup.inc (revision 136) @@ -30,7 +30,7 @@ } // if the sort field isn't set $by_month = array(); - include_once(drupal_get_path('module', 'date_api') .'/date.inc'); + include_once(drupal_get_path('module', 'date_api') .'/date_api.module'); foreach ($nodes as $proto_node) { $node = node_load($proto_node->nid); $val = $node->$sort_field; @@ -43,15 +43,9 @@ } // if it's not an array, it's probably a simple unix timestamp. - // format_date doesn't handle pre-1970 dates, so we'll use date_format_date - // in that case. But both of these provide translation. - if (function_exists('date_format_date')) { - $year = date_format_date('Y', $val); - $month = date_format_date('F', $val); - } else { + // format_date doesn't handle pre-1970 dates, $year = format_date($val, 'custom', 'Y', 0); $month = format_date($val, 'custom', 'F', 0); - } $by_month[$year][$month][] = $node;