Index: workflow.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/workflow/workflow.module,v
retrieving revision 1.83
diff -u -p -r1.83 workflow.module
--- workflow.module	1 Jan 2009 21:09:16 -0000	1.83
+++ workflow.module	5 Apr 2009 10:52:54 -0000
@@ -277,15 +277,8 @@ function workflow_transition($node, $sid
       $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 @@ function workflow_token_list($type = 'al
   }
 
   return $tokens;
-}
\ No newline at end of file
+}
