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:
Kevin P. Fleming
2007-06-14 21:50:40 +00:00
parent 45ad7fcec8
commit ae82d97c6d
18 changed files with 80 additions and 54 deletions

View File

@@ -77,7 +77,7 @@ static int pgsql_log(struct ast_cdr *cdr)
ast_mutex_lock(&pgsql_lock);
localtime_r(&cdr->start.tv_sec,&tm);
ast_localtime(&cdr->start.tv_sec, &tm, NULL);
strftime(timestr, sizeof(timestr), DATE_FORMAT, &tm);
if ((!connected) && pghostname && pgdbuser && pgpassword && pgdbname) {