diff options
Diffstat (limited to 'apps/app_sayunixtime.c')
-rwxr-xr-x | apps/app_sayunixtime.c | 11 |
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); |