aboutsummaryrefslogtreecommitdiffstats
path: root/say.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-11 23:27:51 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-07-11 23:27:51 +0000
commit4680dc3055d86d38458c012db30f4f17f532b8dc (patch)
treee04d578b026586c97bd773a26b4cd1178b2b6312 /say.c
parentb55dc5f39295a441dbfd05b34472364b39ec4366 (diff)
say times in spanish properly (using new sound files that are not yet released)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37396 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rw-r--r--say.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/say.c b/say.c
index 999f79c57..623a3425d 100644
--- 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':