Index: modules/comment/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v
retrieving revision 1.617.2.17
diff -u -p -r1.617.2.17 comment.module
--- modules/comment/comment.module	11 Aug 2010 20:35:47 -0000	1.617.2.17
+++ modules/comment/comment.module	16 Aug 2010 19:47:00 -0000
@@ -697,6 +697,12 @@ function comment_save($edit) {
         'name' => '',
         'status' => user_access('post comments without approval') ? COMMENT_PUBLISHED : COMMENT_NOT_PUBLISHED,
       );
+      
+      // If the timestamp is not provided, then automatically use the current timestamp for either creating a new comment or updating the existing comment
+      if (empty($edit['timestamp'])) {
+        $edit['timestamp'] = time();
+      }
+      
       if ($edit['cid']) {
         // Update the comment in the database.
         db_query("UPDATE {comments} SET status = %d, timestamp = %d, subject = '%s', comment = '%s', format = %d, uid = %d, name = '%s', mail = '%s', homepage = '%s' WHERE cid = %d", $edit['status'], $edit['timestamp'], $edit['subject'], $edit['comment'], $edit['format'], $edit['uid'], $edit['name'], $edit['mail'], $edit['homepage'], $edit['cid']);
@@ -753,10 +759,6 @@ function comment_save($edit) {
           }
         }
 
-        if (empty($edit['timestamp'])) {
-          $edit['timestamp'] = time();
-        }
-
         if ($edit['uid'] === $user->uid && isset($user->name)) { // '===' Need to modify anonymous users as well.
           $edit['name'] = $user->name;
         }
