diff options
Diffstat (limited to 'cdr/cdr_odbc.c')
-rw-r--r-- | cdr/cdr_odbc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cdr/cdr_odbc.c b/cdr/cdr_odbc.c index 56f0cda35..d9b1cbb9e 100644 --- a/cdr/cdr_odbc.c +++ b/cdr/cdr_odbc.c @@ -99,7 +99,7 @@ static int odbc_log(struct ast_cdr *cdr) if (usegmtime) gmtime_r(&cdr->start.tv_sec,&tm); else - localtime_r(&cdr->start.tv_sec,&tm); + ast_localtime(&cdr->start.tv_sec, &tm, NULL); ast_mutex_lock(&odbc_lock); strftime(timestr, sizeof(timestr), DATE_FORMAT, &tm); |