diff options
Diffstat (limited to 'cdr/cdr_tds.c')
-rw-r--r-- | cdr/cdr_tds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cdr/cdr_tds.c b/cdr/cdr_tds.c index 2ac8481a8..444751d1a 100644 --- a/cdr/cdr_tds.c +++ b/cdr/cdr_tds.c @@ -286,7 +286,7 @@ static void get_date(char *dateField, struct timeval tv) if (!ast_tvzero(tv)) { t = tv.tv_sec; - localtime_r(&t, &tm); + ast_localtime(&t, &tm, NULL); strftime(buf, 80, DATE_FORMAT, &tm); sprintf(dateField, "'%s'", buf); } |