fix for #477: Notification time gone wrong
[collectd.git] / src / utils_cmd_putnotif.c
index 5a9faff..7c96508 100644 (file)
@@ -55,7 +55,7 @@ static int set_option_time (notification_t *n, const char *value)
   if (tmp <= 0)
     return (-1);
 
-  n->time = tmp;
+  n->time = TIME_T_TO_CDTIME_T (tmp);
 
   return (0);
 } /* int set_option_time */