### Eclipse Workspace Patch 1.0
#P Alpha4
Index: modules/leaguesite/leaguesite_match/leaguesite_match.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/leaguesite/leaguesite_match/leaguesite_match.module,v
retrieving revision 1.41
diff -u -r1.41 leaguesite_match.module
--- modules/leaguesite/leaguesite_match/leaguesite_match.module	11 Oct 2010 21:39:17 -0000	1.41
+++ modules/leaguesite/leaguesite_match/leaguesite_match.module	23 Nov 2010 22:12:55 -0000
@@ -1041,4 +1041,45 @@
 		$tokens['match_date'] = $match_time;
 	}
 	return $tokens;
+}
+
+/**
+ * Telling the date api to inlcude the leaguesite_match to be
+ * inluded in the date arguments
+ */
+ function leaguesite_match_date_api_tables() {
+    return array('leaguesite_match');
+}
+
+/**
+ * Implementation of hook_date_api_fields().
+ * on behalf of core fields.
+ *
+ * All modules that create custom fields that use the
+ * 'views_handler_field_date' handler can provide
+ * additional information here about the type of
+ * date they create so the date can be used by
+ * the Date API views date argument and date filter.
+ */
+function leaguesite_match_date_api_fields($field) {
+  $values = array(
+    // The type of date: DATE_UNIX, DATE_ISO, DATE_DATETIME.
+    'sql_type' => DATE_ISO,
+    // Timezone handling options: 'none', 'site', 'date', 'utc'.
+    'tz_handling' => 'none',
+    // Needed only for dates that use 'date' tz_handling.
+    'timezone_field' => '',
+    // Needed only for dates that use 'date' tz_handling.
+    'offset_field' => '',
+    // Array of "table.field" values for related fields that should be
+    // loaded automatically in the Views SQL.
+    'related_fields' => array(),
+    // Granularity of this date field's db data.
+    'granularity' => array('year', 'month', 'day', 'hour', 'minute', 'second'),
+  );
+
+  switch ($field) {
+    case 'leaguesite_match.match_time':
+    return $values;
+  }
 }
\ No newline at end of file
