mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Janitor for ast_localtime
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2307,7 +2307,7 @@ static void *rpt_tele_thread(void *this)
|
|||||||
case STATS_TIME:
|
case STATS_TIME:
|
||||||
wait_interval(myrpt, DLY_TELEM, mychannel); /* Wait a little bit */
|
wait_interval(myrpt, DLY_TELEM, mychannel); /* Wait a little bit */
|
||||||
t = time(NULL);
|
t = time(NULL);
|
||||||
localtime_r(&t, &localtm);
|
ast_localtime(&t, &localtm, NULL);
|
||||||
/* Say the phase of the day is before the time */
|
/* Say the phase of the day is before the time */
|
||||||
if ((localtm.tm_hour >= 0) && (localtm.tm_hour < 12))
|
if ((localtm.tm_hour >= 0) && (localtm.tm_hour < 12))
|
||||||
p = "rpt/goodmorning";
|
p = "rpt/goodmorning";
|
||||||
|
|||||||
Reference in New Issue
Block a user