=== modified file 'www/sites/all/modules/workflow/workflow.module'
--- www/sites/all/modules/workflow/workflow.module	2009-06-25 07:49:24 +0000
+++ www/sites/all/modules/workflow/workflow.module	2009-06-25 09:22:38 +0000
@@ -277,15 +277,8 @@
       $comment = $node->workflow_comment;
       $old_sid = workflow_node_current_state($node);
 
-      if ($node->workflow_scheduled_date['day'] < 10) {
-        $node->workflow_scheduled_date['day'] = '0' .
-        $node->workflow_scheduled_date['day'];
-      }
-
-      if ($node->workflow_scheduled_date['month'] < 10) {
-        $node->workflow_scheduled_date['month'] = '0' .
-        $node->workflow_scheduled_date['month'];
-      }
+      $node->workflow_scheduled_date['day'] = sprintf('%02d', $node->workflow_scheduled_date['day']);
+      $node->workflow_scheduled_date['month'] = sprintf('%02d', $node->workflow_scheduled_date['month']);
 
       if (!$node->workflow_scheduled_hour) {
         $node->workflow_scheduled_hour = '00:00';
@@ -1508,4 +1501,4 @@
   }
 
   return $tokens;
-}
\ No newline at end of file
+}

