Index: rsvp.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/rsvp/rsvp.module,v
retrieving revision 1.22.2.35
diff -u -p -r1.22.2.35 rsvp.module
--- rsvp.module	29 Jul 2009 15:51:45 -0000	1.22.2.35
+++ rsvp.module	8 Sep 2009 09:04:15 -0000
 
@@ -1525,11 +1575,13 @@ function rsvp_invite_view_page($rsvp, $i
     $fields[] = 'invited = %d';
     $fields[] = 'received = %d';
     $fields[] = 'timestamp = %d';
+     $fields[] = 'time_respond = %d';
     
     $vals = array();
     $vals[] = 1;
     $vals[] = 1;
     $vals[] = time();
+     $vals[] = time();
     $vals[] = $invite_target->hash;
     
     $sql = 'UPDATE {rsvp_invite} SET '. implode(', ', $fields) .' WHERE hash = \'%s\'';
@@ -2931,7 +2983,7 @@ function rsvp_reply_form_validate($form,
 function rsvp_reply_form_submit($form, &$form_state) {
   global $user;
   drupal_set_message(t('Your response has been saved.'), 'status');
-  db_query('UPDATE {rsvp_invite} SET response = \'%s\', comment = \'%s\', timestamp = %d, invited = 1, received = 1, totalguests = %d WHERE hash = \'%s\'', $form_state['values']['reply_invite_reply'], $form_state['values']['reply'], time(), $form_state['values']['reply_totalguests'], $form_state['values']['reply_hash']);
+  db_query('UPDATE {rsvp_invite} SET response = \'%s\', comment = \'%s\', timestamp = %d, time_respond = %d,invited = 1, received = 1, totalguests = %d WHERE hash = \'%s\'', $form_state['values']['reply_invite_reply'], $form_state['values']['reply'], time(), time(), $form_state['values']['reply_totalguests'], $form_state['values']['reply_hash']);
 
   $is_own_invitation = $form_state['values']['is_own_invitation'];
   $rsvp = $form_state['values']['rsvp'];
Index: rsvp.mysql
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/rsvp/rsvp.mysql,v
retrieving revision 1.2
diff -u -p -r1.2 rsvp.mysql
--- rsvp.mysql	25 Mar 2005 06:51:25 -0000	1.2
+++ rsvp.mysql	8 Sep 2009 09:06:24 -0000
@@ -20,5 +20,7 @@ CREATE TABLE rsvp_invite (
   invited int(10) unsigned NOT NULL default '0',
   received int(10) unsigned NOT NULL default '0',
   timestamp int(10) unsigned NOT NULL default '0',
+  time_send int(10) unsigned default '0',
+  time_respond int(10) unsigned default '0',
   PRIMARY KEY (rid,email,uid)
 );
Index: rsvp.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/rsvp/rsvp.install,v
retrieving revision 1.10.2.3
diff -u -p -r1.10.2.3 rsvp.install
--- rsvp.install	16 Mar 2009 18:17:31 -0000	1.10.2.3
+++ rsvp.install	8 Sep 2009 09:09:24 -0000
@@ -322,6 +322,20 @@ function rsvp_schema() {
         'not null' => TRUE,
         'default' => '1'
       ),
+      'time_sent' => array(
+        'description' => ('When this invitation was sent'),
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => FALSE,
+        'default' => NULL,
+      ),
+      'time_respond' => array(
+        'description' => ('When the invitee last responded.'),
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => FALSE,
+        'default' => NULL,
+      ),
     ),
     'primary key' => array('rid', 'email', 'uid'),
   );
Index: rsvp.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/rsvp/rsvp.install,v
retrieving revision 1.10.2.3
diff -u -p -r1.10.2.3 rsvp.install
@@ -721,6 +742,38 @@ function rsvp_update_6201() {
   return $ret;
 }
 
+/** 
+*Implementation of hook_schema_alter(). We alter $schema by reference. 
+* 
+*@param $schema 
+* The system-wide schema collected by drupal_get_schema(). 
+*/ 
+function rsvp_update_6202(&$schema) {
+
+  db_add_field($ret, 'rsvp_invite', 'time_sent', array(
+      'description' => ('When this invitation was sent'),
+      'type' => 'int',
+      'unsigned' => TRUE,
+      'not null' => FALSE,
+      'default' => NULL,
+    )
+  );
+  
+  db_add_field($ret, 'rsvp_invite', 'time_respond', array(
+      'description' => ('When this invitation was sent'),
+      'type' => 'int',
+      'unsigned' => TRUE,
+      'not null' => FALSE,
+      'default' => NULL,
+    )
+  );
+
+  return $ret;
+} 
+
+
+
+
 /**
  * Implementation of hook_enable().
  */
