aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_sayunixtime.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-13 16:13:07 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-11-13 16:13:07 +0000
commit9e076dc898c23c4b6f88705c9fab822aa1a11056 (patch)
treed42acc06b937b300fa78849e43034c43d9efe96b /apps/app_sayunixtime.c
parent186326097344b69a46c5b7e775f2040b81fe1d74 (diff)
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
Diffstat (limited to 'apps/app_sayunixtime.c')
-rwxr-xr-xapps/app_sayunixtime.c11
1 files changed, 8 insertions, 3 deletions
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);