From 9e076dc898c23c4b6f88705c9fab822aa1a11056 Mon Sep 17 00:00:00 2001 From: markster Date: Sat, 13 Nov 2004 16:13:07 +0000 Subject: Updates from char * to const char * + german syntax + enumeration (bug #2780) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4229 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_sayunixtime.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'apps/app_sayunixtime.c') diff --git a/apps/app_sayunixtime.c b/apps/app_sayunixtime.c index 3c32049f3..a7d09355e 100755 --- a/apps/app_sayunixtime.c +++ b/apps/app_sayunixtime.c @@ -58,16 +58,21 @@ static int sayunixtime_exec(struct ast_channel *chan, void *data) { int res=0; struct localuser *u; - char *s,*zone=NULL,*timec; + char *s,*zone=NULL,*timec,*format; time_t unixtime; - char *format = "ABdY 'digits/at' IMp"; struct timeval tv; - + LOCAL_USER_ADD(u); gettimeofday(&tv,NULL); unixtime = (time_t)tv.tv_sec; + if( !strcasecmp(chan->language, "de" ) ) { + format = "A dBY HMS"; + } else { + format = "ABdY 'digits/at' IMp"; + } + if (data) { s = data; s = ast_strdupa(s); -- cgit v1.2.3