]> 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:23:18 +0000 (23:23 +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: I6afa98f9163190043244b9f3ba91eb1874d1b586

apps/app_playback.c

index 2875ec2b49b59607d85475ca3d5a98a09b22d04b..6564737c3fa04e96fff62f5c00237bb3a8b8d831 100644 (file)
@@ -324,7 +324,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,