]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_playback.c: Use the timezonename parameter
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Tue, 11 Jul 2017 09:48:26 +0000 (11:48 +0200)
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>
Wed, 12 Jul 2017 21:22:56 +0000 (23:22 +0200)
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

apps/app_playback.c

index 35900e8f78fdbfa79dc760f2b4c61c67f9ed8081..7c895e3623930c8319357acbb707a765e6810149 100644 (file)
@@ -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,