[Asterisk-code-review] app playback.c: Use the timezonename parameter (asterisk[14])

Holger Hans Peter Freyther asteriskteam at digium.com
Wed Jul 12 16:19:20 CDT 2017


Holger Hans Peter Freyther has uploaded this change for review. ( https://gerrit.asterisk.org/6005


Change subject: app_playback.c: Use the timezonename parameter
......................................................................

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: I6afa98f9163190043244b9f3ba91eb1874d1b586
---
M apps/app_playback.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/05/6005/1

diff --git a/apps/app_playback.c b/apps/app_playback.c
index 2875ec2..6564737 100644
--- a/apps/app_playback.c
+++ b/apps/app_playback.c
@@ -324,7 +324,7 @@
 	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,

-- 
To view, visit https://gerrit.asterisk.org/6005
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6afa98f9163190043244b9f3ba91eb1874d1b586
Gerrit-Change-Number: 6005
Gerrit-PatchSet: 1
Gerrit-Owner: Holger Hans Peter Freyther <automatic at freyther.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170712/5adf42d7/attachment.html>


More information about the asterisk-code-review mailing list