### 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	11 Nov 2010 20:26:24 -0000
@@ -400,7 +400,7 @@
   $form['match_time'] = array(
     '#type' => 'date_popup',
     '#title' => t('The date and start time for the match'),
-    '#date_format' => 'd.m.Y.H:i',
+    '#date_format' => variable_get('leaguesite_match_edit_date_format', 'd.m.Y.H:i'),
     '#date_year_range' => '-3:+5',
     '#default_value' =>  $current_date,//date_make_date($node->match_time),
     '#weight' => -6,
Index: modules/leaguesite/leaguesite_match/leaguesite_match.admin.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/leaguesite/leaguesite_match/leaguesite_match.admin.inc,v
retrieving revision 1.28
diff -u -r1.28 leaguesite_match.admin.inc
--- modules/leaguesite/leaguesite_match/leaguesite_match.admin.inc	23 Sep 2010 19:17:35 -0000	1.28
+++ modules/leaguesite/leaguesite_match/leaguesite_match.admin.inc	11 Nov 2010 20:26:23 -0000
@@ -109,7 +109,7 @@
 	  for($count = 0; $count < $default_number_value; ++$count){
       $form['matches']['time'.$count] = array(
         '#type' => 'date_popup',
-        '#date_format' => 'd.m.Y.H:i',
+        '#date_format' => variable_get('leaguesite_match_edit_date_format', 'd.m.Y.H:i'),
         '#date_year_range' => '-3:+5',
         //TODO: Enter the default time into the date. I used the lines below to do it on the hook_form in leaguesite_match.
         //$current_date = date_format_date(date_make_date('now', 'NULL', 'DATE_UNIX'), 'custom', 'Y-m-d');
@@ -621,6 +621,19 @@
     '#default_value' => variable_get('leaguesite_match_display_date', TRUE),
   );
   
+  $options = array(
+    'd.m.Y.H:i' => 'dd.mm.yy hh:mm',
+    'd.m.Y' => 'dd.mm.yy',
+    'm.d.Y.H:i' => 'mm.dd.yy hh:mm',
+    'm.d.Y' => 'mm.dd.yy',
+  );
+  $form['leaguesite_match_edit_date_format'] = array(
+    '#type' => 'radios',
+    '#title' => t('The format of the date input on the match edit form'),
+    '#default_value' => variable_get('leaguesite_match_edit_date_format', 'd.m.Y.H:i'),
+    '#options' => $options,
+  );
+  
   $form['leaguesite_display_scoring'] = array(
     '#type' => 'checkbox',
     '#title' => t('Display the match scoring details in node view (requires leaguesite_scoring module)'),
@@ -730,6 +743,7 @@
   variable_set('leaguesite_match_friendly_match_name', $form_state['values']['friendly_match_name']);
   variable_set('leaguesite_match_display_date', $form_state['values']['leaguesite_display_date']);
   variable_set('leagusite_match_display_scoring', $form_state['values']['leaguesite_display_scoring']);
+  variable_set('leaguesite_match_edit_date_format', $form_state['values']['leaguesite_match_edit_date_format']);
 }
 
 /*
