Index: ad.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ad/ad.module,v
retrieving revision 1.2.2.29.2.83.2.16.2.36
diff -u -F '^f' -r1.2.2.29.2.83.2.16.2.36 ad.module
--- ad.module	23 Nov 2009 06:40:02 -0000	1.2.2.29.2.83.2.16.2.36
+++ ad.module	28 Nov 2009 19:42:58 -0000
@@ -1015,14 +1015,14 @@ function ad_nodeapi(&$node, $op, $teaser
     case 'validate':
       $autoactivate = isset($node->autoactivate) ? trim($node->autoactivate) : '';
       if (!empty($autoactivate)) {
-        $timestamp = strtotime($autoactivate);
+        $timestamp = (is_numeric($autoactivate)) ? $autoactivate : strtotime($autoactivate);
         if ($timestamp <= 0) {
           form_set_error('autoactivate', 'Please select a valid time to automatically active this ad.');
         }
       }
       $autoexpire = isset($node->autoexpire) ? trim($node->autoexpire) : '';
       if (!empty($autoexpire)) {
-        $timestamp = strtotime($autoexpire);
+        $timestamp = (is_numeric($autoexpire)) ? $autoexpire : strtotime($autoexpire);
         if ($timestamp <= 0) {
           form_set_error('autoexpire', 'Please select a valid time to automatically expire this ad.');
         }
