mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 11:13:09 +00:00
Merged revisions 69392 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r69392 | kpfleming | 2007-06-14 16:50:40 -0500 (Thu, 14 Jun 2007) | 2 lines use ast_localtime() in every place localtime_r() was being used ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -104,15 +104,15 @@ static int sqlite_log(struct ast_cdr *cdr)
|
||||
ast_mutex_lock(&sqlite_lock);
|
||||
|
||||
t = cdr->start.tv_sec;
|
||||
localtime_r(&t, &tm);
|
||||
ast_localtime(&t, &tm, NULL);
|
||||
strftime(startstr, sizeof(startstr), DATE_FORMAT, &tm);
|
||||
|
||||
t = cdr->answer.tv_sec;
|
||||
localtime_r(&t, &tm);
|
||||
ast_localtime(&t, &tm, NULL);
|
||||
strftime(answerstr, sizeof(answerstr), DATE_FORMAT, &tm);
|
||||
|
||||
t = cdr->end.tv_sec;
|
||||
localtime_r(&t, &tm);
|
||||
ast_localtime(&t, &tm, NULL);
|
||||
strftime(endstr, sizeof(endstr), DATE_FORMAT, &tm);
|
||||
|
||||
for(count=0; count<5; count++) {
|
||||
|
Reference in New Issue
Block a user