diff options
Diffstat (limited to 'funcs')
-rw-r--r-- | funcs/func_strings.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/funcs/func_strings.c b/funcs/func_strings.c index 5eab9930f..db14c07fd 100644 --- a/funcs/func_strings.c +++ b/funcs/func_strings.c @@ -659,7 +659,8 @@ static int acf_strptime(struct ast_channel *chan, const char *cmd, char *data, if (!strptime(args.timestring, args.format, &t.time)) { ast_log(LOG_WARNING, "C function strptime() output nothing?!!\n"); } else { - snprintf(buf, len, "%d", (int) ast_mktime(&t.atm, args.timezone)); + struct timeval tv = ast_mktime(&t.atm, args.timezone); + snprintf(buf, len, "%d", (int) tv.tv_sec); } return 0; |