From a76b90bfeff5cedb7e831a6d7490cf0b7432c175 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Thu, 10 Mar 2005 08:58:01 +0000
Subject: [PATCH] Fix spanish date format (bug #3642)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 say.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/say.c b/say.c
index ceb2535f0a..dc8d1fca73 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 */
-- 
GitLab