From: Kinsey Moore Date: Mon, 1 Aug 2011 15:23:29 +0000 (+0000) Subject: Merged revisions 330433 via svnmerge from X-Git-Tag: 10.0.0-beta2~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72baa3f32e8a183c23a3c9877c201c0213db32eb;p=thirdparty%2Fasterisk.git Merged revisions 330433 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r330433 | kmoore | 2011-08-01 10:22:10 -0500 (Mon, 01 Aug 2011) | 9 lines Incorrect playback for Spanish in some circumstances When you say the time in spanish and it is 01:00 - 01:59 or 13:00 - 13:59 you must use female pronunciation "1F". The function "say_date_with_format_es" does not take this in account. (closes ASTERISK-15016) Patch-by: Luis Jimenez ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@330434 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/say.c b/main/say.c index d16424da21..871b899eea 100644 --- a/main/say.c +++ b/main/say.c @@ -4725,6 +4725,8 @@ int ast_say_date_with_format_es(struct ast_channel *chan, time_t t, const char * /* 12-Hour */ if (tm.tm_hour == 0) ast_copy_string(nextmsg, "digits/12", sizeof(nextmsg)); + else if (tm.tm_hour == 1 || tm.tm_hour == 13) + snprintf(nextmsg,sizeof(nextmsg), "digits/1F"); else if (tm.tm_hour > 12) snprintf(nextmsg, sizeof(nextmsg), "digits/%d", tm.tm_hour - 12); else