Index: date_popup/date_popup.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/date/date_popup/date_popup.module,v
retrieving revision 1.42.2.1.2.60
diff -u -p -r1.42.2.1.2.60 date_popup.module
--- date_popup/date_popup.module	13 Aug 2010 18:48:34 -0000	1.42.2.1.2.60
+++ date_popup/date_popup.module	16 Aug 2010 00:14:23 -0000
@@ -389,7 +389,7 @@ function date_popup_validate($element, &
  *   Should we add a time value to complete the date if there is no time?
  *   Useful anytime the time value is optional. 
  */
-function date_popup_input_value($element, $auto_complete = FALSE) {
+function date_popup_input_value($element, $dummy = FALSE, $auto_complete = TRUE) {
   date_popup_load();
   $granularity = date_format_order($element['#date_format']);
   $format = $element['#date_format'];
@@ -407,8 +407,10 @@ function date_popup_input_value($element
   }
   
   if (date_is_valid($value, DATE_DATETIME, $granularity)) {
-    $date = date_make_date($value, $element['#date_timezone'], DATE_DATETIME, $granularity);
-    $value = date_convert($date, DATE_OBJECT, DATE_DATETIME);
+    if ($autocomplete == TRUE) {
+      $date = date_make_date($value, $element['#date_timezone'], DATE_DATETIME, $granularity);
+      $value = date_convert($date, DATE_OBJECT, DATE_DATETIME);
+    }
     return $value;
   }
   return NULL;
@@ -620,4 +622,4 @@ EOM;
   $form['#suffix'] = t('<p>The Date Popup calendar includes some css for IE6 that breaks css validation. Since IE 6 is now superceded by IE 7 and IE 8, the special css for IE 6 has been removed from the regular css used by the Date Popup. If you find you need that css after all, you can add it back in your theme. Look at the way the Garland theme adds special IE-only css in in its page.tpl.php file. The css you need is:</p>') .'<blockquote><PRE>'. $css .'</PRE></blockquote>';
 
   return system_settings_form($form);
-}
\ No newline at end of file
+}
