say times in spanish properly (using new sound files that are not yet released)
authorKevin P. Fleming <kpfleming@digium.com>
Tue, 11 Jul 2006 23:27:51 +0000 (23:27 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Tue, 11 Jul 2006 23:27:51 +0000 (23:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37396 65c4cc65-6c06-0410-ace0-fbb531ad65f3

say.c

diff --git a/say.c b/say.c
index 999f79c..623a342 100644 (file)
--- a/say.c
+++ b/say.c
@@ -3876,9 +3876,11 @@ int ast_say_date_with_format_es(struct ast_channel *chan, time_t time, const cha
                        case 'P':
                        case 'p':
                                /* AM/PM */
-                               if (tm.tm_hour > 12)
+                               if (tm.tm_hour > 18)
                                        res = wait_file(chan, ints, "digits/p-m", lang);
-                               else if (tm.tm_hour  && tm.tm_hour < 12)
+                               else if (tm.tm_hour > 12)
+                                       res = wait_file(chan, ints, "digits/afternoon", lang);
+                               else if (tm.tm_hour)
                                        res = wait_file(chan, ints, "digits/a-m", lang);
                                break;
                        case 'Q':