Index: volunteer.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/volunteer/volunteer.module,v
retrieving revision 1.11
diff -u -r1.11 volunteer.module
--- volunteer.module	24 May 2005 04:32:43 -0000	1.11
+++ volunteer.module	1 Jul 2005 22:38:16 -0000
@@ -361,14 +361,14 @@
   $time = time();
   $twodays = $time + (60*60*48);
 
-  $result = db_query('SELECT c.nid, c.cid FROM {volunteer_contact_event} c LEFT JOIN {event} e ON e.nid = c.nid WHERE start > %d AND start < %d AND c.stage = %d', $time, $twodays, 3);
+  $result = db_query('SELECT c.nid, c.cid FROM {volunteer_contact_event} c LEFT JOIN {event} e ON e.nid = c.nid WHERE e.event_start > %d AND e.event_start < %d AND c.stage = %d', $time, $twodays, 3);
   while($pairs = db_fetch_object($result)) {
     volunteer_mail($pairs->cid, $pairs->nid, 'reminder');
     db_query('UPDATE {volunteer_contact_event} set stage = 4 WHERE cid = %d AND nid = %d', $pairs->cid, $pairs->nid);
   }
 
   //send follow-up and set stage
-  $result = db_query('SELECT c.nid, c.cid FROM {volunteer_contact_event} c LEFT JOIN {event} e ON e.nid = c.nid WHERE start < %d AND stage = %d', $time, 4);
+  $result = db_query('SELECT c.nid, c.cid FROM {volunteer_contact_event} c LEFT JOIN {event} e ON e.nid = c.nid WHERE e.event_start < %d AND stage = %d', $time, 4);
   while($pairs = db_fetch_object($result)) {
     // this is not implemented apparently, no way for users to actually follow up.... ?
     //volunteer_mail($pairs->cid, $pairs->nid, 'follow_up');
@@ -702,7 +702,7 @@
 $variables = array('%coordinator' => $coordinator->profile_fullname ? $coordinator->profile_fullname : $coordinator->name,
                      '%coordinator_mail' => $coordinator->mail,
                      '%event_title' => $event->title,
-                     '%event_date' => format_date($event->start, 'custom', 'm/d/y'),
+                     '%event_date' => format_date($event->event_start, 'custom', 'm/d/y'),
                      '%event_link' => $base_url.'/'. url('node/'.$event->nid),
                      '%site_link' => $base_url,
                      '%volunteer_mail' => $volunteer->mail,
