mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 03:04:19 +00:00
use ast_localtime() in every place localtime_r() was being used
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user