mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +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:
@@ -208,7 +208,8 @@ static void cdr_get_tv(struct timeval tv, const char *fmt, char *buf, int bufsiz
|
||||
time_t t = tv.tv_sec;
|
||||
if (t) {
|
||||
struct tm tm;
|
||||
localtime_r(&t, &tm);
|
||||
|
||||
ast_localtime(&t, &tm, NULL);
|
||||
strftime(buf, bufsize, fmt, &tm);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user