dect
/
asterisk
Archived
13
0
Fork 0

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:
tilghman 2007-06-18 17:48:56 +00:00
parent 1db7ebcb93
commit 7edb2a71ad
1 changed files with 1 additions and 1 deletions

View File

@ -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";