Janitor for ast_localtime
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69745 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
1db7ebcb93
commit
7edb2a71ad
1 changed files with 1 additions and 1 deletions
|
@ -2307,7 +2307,7 @@ static void *rpt_tele_thread(void *this)
|
|||
case STATS_TIME:
|
||||
wait_interval(myrpt, DLY_TELEM, mychannel); /* Wait a little bit */
|
||||
t = time(NULL);
|
||||
localtime_r(&t, &localtm);
|
||||
ast_localtime(&t, &localtm, NULL);
|
||||
/* Say the phase of the day is before the time */
|
||||
if ((localtm.tm_hour >= 0) && (localtm.tm_hour < 12))
|
||||
p = "rpt/goodmorning";
|
||||
|
|
Reference in a new issue