mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
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
This commit is contained in:
committed by
Joshua Colp
parent
f0558d58f0
commit
1c3e7df26e
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user