Fix the conversion of time option in PUTNOTIF
authorManuel Luis Sanmartín Rozada <manuel.luis@gmail.com>
Wed, 18 Jun 2014 22:35:02 +0000 (00:35 +0200)
committerManuel Luis Sanmartín Rozada <manuel.luis@gmail.com>
Wed, 18 Jun 2014 22:35:02 +0000 (00:35 +0200)
from timestamp to cdtime_t

src/utils_cmd_putnotif.c

index 5a9faff..3496ca9 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 */