aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/app_rpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_rpt.c b/apps/app_rpt.c
index 490ac2197..7ae10fb24 100644
--- a/apps/app_rpt.c
+++ b/apps/app_rpt.c
@@ -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";