Index: monthgroup.inc =================================================================== --- monthgroup.inc (revision 115) +++ monthgroup.inc (working copy) @@ -28,7 +28,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_elements.inc'); foreach ($nodes as $proto_node) { $node = node_load($proto_node->nid); $val = $node->$sort_field; @@ -37,8 +37,8 @@ // 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', strtotime($val)); - $month = date_format_date('F', strtotime($val)); + $year = date_format_date(date_make_date($val), 'custom', 'Y'); + $month = date_format_date(date_make_date($val), 'custom', 'F'); } else { $year = format_date(strtotime($val), 'custom', 'Y', 0); $month = format_date(strtotime($val), 'custom', 'F', 0);