From db7644285a47fadcf3807bf1a706814e75a9c883 Mon Sep 17 00:00:00 2001
From: Alex Ho <mralexho@gmail.com>
Date: Mon, 1 Jul 2013 16:13:45 -0400
Subject: [PATCH] Issue #2032585 by mralexho: Fixed the time offset to include
 hour, minutes, and seconds

---
 .../all/modules/node_reminder/node_reminder.module |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/sites/all/modules/node_reminder/node_reminder.module b/sites/all/modules/node_reminder/node_reminder.module
index 9a3f47c..a5170cc 100644
--- a/sites/all/modules/node_reminder/node_reminder.module
+++ b/sites/all/modules/node_reminder/node_reminder.module
@@ -46,9 +46,9 @@ function node_reminder_permission() {
 function node_reminder_form_alter(&$form, $form_state, $form_id) {
   $content_types = variable_get('node_reminder_node_types', array());
 
-  if (!empty($content_types) && isset($form['type']) && isset($form['#node']) && 
+  if (!empty($content_types) && isset($form['type']) && isset($form['#node']) &&
 	  $form['type']['#value'] .'_node_form' == $form_id &&
-	  in_array($form['type']['#value'], $content_types, true)) 
+	  in_array($form['type']['#value'], $content_types, true))
   {
     $reminder = new stdClass;
     $reminder->nid = isset($form['#node']->nid) ? $form['#node']->nid : NULL;
@@ -220,7 +220,7 @@ function node_reminder_node_validate($node, $form, &$form_state) {
  */
 function node_reminder_save(&$reminder) {
   // check to see if the reminder exists
-  $reminder->notify_on = strtotime(date('Y-m-d', $reminder->from_date) . "+ {$reminder->amount_of_time} {$reminder->unit_of_time}");
+  $reminder->notify_on = strtotime(date('Y-m-d H:i:s', $reminder->from_date) . "+ {$reminder->amount_of_time} {$reminder->unit_of_time}");
   unset($reminder->from_date);
   $reminder_current = node_reminder_load($reminder->nid);
   if ($reminder_current) {
@@ -302,29 +302,29 @@ function node_reminder_tokens($type, $tokens, array $data = array(), array $opti
  */
 function node_reminder_token_info() {
   $info['tokens']['node']['reminder'] = array(
-	'name' => t('Reminders'), 
-	'description' => t('Tokens related to node reminders.'), 
+	'name' => t('Reminders'),
+	'description' => t('Tokens related to node reminders.'),
 	'type' => 'reminder',
   );
 
   $info['types']['reminder'] = array(
-	'name' => t('Reminders'), 
-	'description' => t('Tokens related to node reminders.'), 
+	'name' => t('Reminders'),
+	'description' => t('Tokens related to node reminders.'),
 	'needs-data' => 'node',
   );
 
   $info['tokens']['reminder']['interval'] = array(
-    'name' => t("Interval"), 
+    'name' => t("Interval"),
     'description' => t('The amount and unit of time after which a reminder will be sent (e.g., 3 days, 6 weeks)'),
   );
 
   $info['tokens']['reminder']['url'] = array(
-    'name' => t("URL"), 
+    'name' => t("URL"),
     'description' => t('An absolute url for the reminder, suitable for sending in emails so users know which reminder triggered the message'),
   );
 
   $info['tokens']['reminder']['note'] = array(
-    'name' => t("Interval"), 
+    'name' => t("Interval"),
     'description' => t('The user defined note for the reminder'),
   );
 
-- 
1.7.10.2 (Apple Git-33)

