diff --git a/merci.module b/merci.module index 6131587..44a93ce 100644 --- a/merci.module +++ b/merci.module @@ -795,7 +795,7 @@ function merci_views_api() { function merci_cron() { // 2009-05-22 20:45:00 - $time = gmdate('Y-m-j H:i:s'); + $time = date('Y-m-j H:i:s'); $nodes = merci_db_reservations_by_status_in_timespan(array(MERCI_STATUS_UNCONFIRMED, MERCI_STATUS_PENDING), $time, $time); @@ -842,7 +842,7 @@ function merci_cron() { // Give no shows a one hour grace period. // TODO: move grace period to admin option. // 2009-05-22 20:45:00 - $time = gmdate('Y-m-j H:i:s', time() - 3600); + $time = date('Y-m-j H:i:s', time() - 3600); //find all pending reservations that have started and set their stauts to no show $nodes = merci_db_reservations_by_status_in_timespan(array(MERCI_STATUS_PENDING), $time, NULL); @@ -853,6 +853,7 @@ function merci_cron() { node_save($node); } } + /** * Implements hook_load(). */