mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +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:
@@ -199,7 +199,7 @@ static int append_date(char *buf, struct timeval tv, size_t bufsize)
|
||||
if (usegmtime) {
|
||||
gmtime_r(&t,&tm);
|
||||
} else {
|
||||
localtime_r(&t,&tm);
|
||||
ast_localtime(&t, &tm, NULL);
|
||||
}
|
||||
strftime(tmp, sizeof(tmp), DATE_FORMAT, &tm);
|
||||
return append_string(buf, tmp, bufsize);
|
||||
|
Reference in New Issue
Block a user