I think I found a bug in the DART scheduler. When I try setting a date in the scheduler, it is not make the DART tag active/inactive. It looks like in the dart_scheduler_cron() function, strtotime is not applied to the $event['date'] but to the conditional statement. Here is my patch:

diff --git a/modules/dart_scheduler/dart_scheduler.module b/modules/dart_scheduler/dart_scheduler.module
index 7130f32..bfbc031 100644
--- a/modules/dart_scheduler/dart_scheduler.module
+++ b/modules/dart_scheduler/dart_scheduler.module
@@ -22,10 +22,9 @@ function dart_scheduler_theme() {
  */
 function dart_scheduler_cron() {
   $tags = dart_tag_load();
-
   foreach ($tags as $tag) {
     for ($i = 0; $event = $tag->settings['scheduler'][$i]; $i++) {
-      if (strtotime($event['date'] <= REQUEST_TIME)) {
+      if (strtotime($event['date']) <= REQUEST_TIME) {
         dart_tag_set_status($tag, $event['status']);
         unset($tag->settings['scheduler'][$i]);
       }

Comments

bleen’s picture

Status: Active » Fixed

I have committed this fix to 7.x-2.x-dev ... nice catch

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.