=== modified file 'uc_deliverytimeslot.module'
--- uc_deliverytimeslot.module	2010-01-01 18:00:02 +0000
+++ uc_deliverytimeslot.module	2010-01-02 00:19:24 +0000
@@ -373,6 +373,9 @@
           if (!$max || $max == 0) {
             $class = 'na';
           }
+          elseif ( _uc_deliverytimeslot_checkslot($timeslot[$sid],$timestamps)) {
+            	$class = 'na';
+          }
           elseif (($booked_num >= $max) && $checked == '') {
             $class = 'full';
           }
@@ -425,6 +428,9 @@
           if (!$max || $max == 0) {
             $class = 'na';
           }
+          elseif ( _uc_deliverytimeslot_checkslot($timeslot[$sid],$timestamps)) {
+            	$class = 'na';
+          }
           elseif (($booked_num >= $max) && $checked == '') {
             $class = 'full';
           }
@@ -570,3 +576,17 @@
   }
   return $output;
 }
+
+/**
+ * check timeslot
+ */
+function _uc_deliverytimeslot_checkslot($slot2check,$timestamps){
+// hard coding offset
+$offset=0;
+$now=time()+$offset*60;
+$slot_start=explode('-',$slot2check);
+$slot_details=explode(':',$slot_start[0]);
+$slot=$timestamps+$slot_details[0]*3600+$slot_details[1]*60;
+if ($now > $slot) { return true;}
+return false;
+}

