From: Holger Hans Peter Freyther Date: Tue, 11 Jul 2017 09:48:26 +0000 (+0200) Subject: app_playback.c: Use the timezonename parameter X-Git-Tag: 15.0.0-beta1~23^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b54eb167b4062ab73f4fd2dfd29dbc75a4ec9ed5;p=thirdparty%2Fasterisk.git app_playback.c: Use the timezonename parameter In say_date_generic the timezonename parameter is passed but never used. Fix it by passing it to the ast_localtime function. ASTERISK-27124 Change-Id: I63106b8db10426d417d7275f22554a616e92fae4 --- diff --git a/apps/app_playback.c b/apps/app_playback.c index 35900e8f78..7c895e3623 100644 --- a/apps/app_playback.c +++ b/apps/app_playback.c @@ -322,7 +322,7 @@ static int say_date_generic(struct ast_channel *chan, time_t t, if (format == NULL) format = ""; - ast_localtime(&when, &tm, NULL); + ast_localtime(&when, &tm, timezonename); snprintf(buf, sizeof(buf), "%s:%s:%04d%02d%02d%02d%02d.%02d-%d-%3d", prefix, format,