Index: date_api_elements.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/date/date_api_elements.inc,v
retrieving revision 1.49.2.1.2.57
diff -u -r1.49.2.1.2.57 date_api_elements.inc
--- date_api_elements.inc	13 Aug 2010 15:47:07 -0000	1.49.2.1.2.57
+++ date_api_elements.inc	14 Aug 2010 03:41:56 -0000
@@ -601,9 +601,7 @@
   $regex2 = preg_replace($patterns, $repl2, $format_regexp, 1);
   $regex2 = str_replace('A', '(AM|PM)', $regex2);
   $regex2 = str_replace('a', '(am|pm)', $regex2);
-  // Change proposed by http://drupal.org/node/802046, see if anything breaks.
-  //preg_match('`^'. $regex2 .'$`', $date, $values);
-  preg_match('/'.$regex2.'/u', $date, $values);
+  preg_match('`^'. $regex2 .'$`', $date, $values);
   array_shift($values);
   
   // if we did not find all the values for the patterns in the format, abort

