aboutsummaryrefslogtreecommitdiffstats
path: root/say.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-10 08:58:01 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-03-10 08:58:01 +0000
commit1c8ec983c56df5ded6490b2f954f471f8274adde (patch)
tree27f335e9841f65ccf67c66d0634ddeb220079441 /say.c
parentd515962bfbd98f4b6c47a86ab3bf86148368770b (diff)
Fix spanish date format (bug #3642)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5159 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rwxr-xr-xsay.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/say.c b/say.c
index ceb2535f0..dc8d1fca7 100755
--- a/say.c
+++ b/say.c
@@ -3127,20 +3127,7 @@ int ast_say_date_with_format_es(struct ast_channel *chan, time_t time, const cha
case 'H':
case 'k':
/* 24-Hour */
- res = ast_say_number(chan, -tm.tm_hour, ints, lang, NULL);
- if (!res) {
- if (tm.tm_hour != 0) {
- int remainder = tm.tm_hour;
- if (tm.tm_hour > 20) {
- res = wait_file(chan,ints, "digits/20",lang);
- remainder -= 20;
- }
- if (!res) {
- snprintf(nextmsg,sizeof(nextmsg), "digits/%d", remainder);
- res = wait_file(chan,ints,nextmsg,lang);
- }
- }
- }
+ res = ast_say_number(chan, tm.tm_hour, ints, lang, NULL);
break;
case 'M':
/* Minute */