### Eclipse Workspace Patch 1.0
#P Date
Index: date_api.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/date/date_api.module,v
retrieving revision 1.64.2.5.2.15
diff -u -r1.64.2.5.2.15 date_api.module
--- date_api.module	27 Jun 2008 14:28:30 -0000	1.64.2.5.2.15
+++ date_api.module	29 Jun 2008 07:40:49 -0000
@@ -41,7 +41,7 @@
  */
 function date_api_init() {
   drupal_add_css(drupal_get_path('module', 'date_api')  .'/date.css');
-  
+
   // Check that required modules are available and silently enable them if needed.
   if (!function_exists('date_create')) {
     module_enable(array('date_php4'));
@@ -416,12 +416,12 @@
       $data = timezone_identifiers_list();
     }
     foreach ($data as $delta => $zone) {
-      // Because many time zones exist in PHP only for backward 
-      // compatibility reasons and should not be used, the list is 
+      // Because many time zones exist in PHP only for backward
+      // compatibility reasons and should not be used, the list is
       // filtered by a regular expression.
       if (preg_match('!^((Africa|America|Antarctica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific)/|UTC$)!', $zone)) {
         $zonenames[$zone] = t($zone);
-      }      
+      }
       else {
         unset($data[$delta]);
       }
@@ -838,7 +838,7 @@
 
 /**
  * The number of calendar weeks in a year.
- * 
+ *
  * PHP week functions return the ISO week, not the calendar week.
  *
  * @param int $year
@@ -852,7 +852,7 @@
 
 /**
  * The calendar week number for a date.
- * 
+ *
  * PHP week functions return the ISO week, not the calendar week.
  *
  * @param string $date, in the format Y-m-d
@@ -923,11 +923,11 @@
         case DATE_ICAL:
           $replace = array(' ' => 'T', '-' => '', ':' => '');
           return strtr($datetime, $replace);
-        case DATE_OBJECT:    
+        case DATE_OBJECT:
           return date_create($datetime, timezone_open('UTC'));
         case DATE_UNIX:
           $obj = date_create($datetime, timezone_open('UTC'));
-          return date_format($obj, 'U');  
+          return date_format($obj, 'U');
       }
       break;
     case DATE_OBJECT:
@@ -946,6 +946,7 @@
       $datetime = date_pad($regs[1], 4) .'-'. date_pad($regs[2]) .'-'. date_pad($regs[3]) .
         'T'. date_pad($regs[5]) .':'. date_pad($regs[6]) .':'. date_pad($regs[7]);
       $obj = date_create($datetime, timezone_open('UTC'));
+      break;
     case DATE_UNIX:
       if (!is_numeric($date)) return NULL;
       $obj = date_create("@$date", timezone_open('UTC'));
@@ -1001,8 +1002,8 @@
   if (empty($date['day'])) {
     $date['day'] = 1;
   }
-  $value = date_pad($date['year'], 4) .'-'. date_pad($date['month']) .'-'. 
-    date_pad($date['day']) .'T'. date_pad($date['hour']) .':'. 
+  $value = date_pad($date['year'], 4) .'-'. date_pad($date['month']) .'-'.
+    date_pad($date['day']) .'T'. date_pad($date['hour']) .':'.
     date_pad($date['minute']) .':'. date_pad($date['second']);
   return $value;
 }
@@ -1019,7 +1020,7 @@
     'hour' => isset($regs[5]) ? intval($regs[5]) : '',
     'minute' => isset($regs[6]) ? intval($regs[6]) : '',
     'second' => isset($regs[7]) ? intval($regs[7]) : '',
-    );       
+    );
 }
 
 /**
@@ -1249,7 +1250,7 @@
       case 'timezone':
         $regex[] = '([\-/\.,:]?\s?(?<!\\\\)[OZPe])';
         break;
-    
+
     }
   }
   // Remove selected values from string.
