Index: webform.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v
retrieving revision 1.284
diff -u -r1.284 webform.module
--- webform.module	18 Feb 2011 17:25:35 -0000	1.284
+++ webform.module	18 Feb 2011 23:24:28 -0000
@@ -2697,7 +2697,7 @@
         foreach ($variable as $key => $value) {
           // This special case for profile module dates.
           if ($token == '%profile' && is_array($value) && isset($value['year'])) {
-            $replacement = format_date(strtotime($value['month'] . '/' . $value['day'] . '/' . $value['year']), 'custom', 'F j, Y', '0');
+            $replacement = webform_strtodate(webform_date_format(), $value['month'] . '/' . $value['day'] . '/' . $value['year'], 'UTC');
           }
           else {
             $replacement = (!is_array($value) && !is_object($value)) ? $value : '';
@@ -3347,7 +3347,7 @@
 }
 
 /**
- * Return a date in the format specied taking into consideration user timezones.
+ * Return a date in the desired format taking into consideration user timezones.
  */
 function webform_strtodate($format, $string, $timezone_name = NULL) {
   // Adjust the time based on the user or site timezone.
