Add a small fix for the tw version of saying dates.

(closes issue #7827)
Reported by: sharkey
Patches: 
      say.nits.patch uploaded by sharkey (license 172)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85686 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Russell Bryant 18 years ago
parent eb9c632b90
commit d47ebb492f

@ -5226,15 +5226,11 @@ int ast_say_date_with_format_tw(struct ast_channel *chan, time_t time, const cha
case 'B':
case 'b':
case 'h':
case 'm':
/* January - December */
snprintf(nextmsg,sizeof(nextmsg), "digits/mon-%d", tm.tm_mon);
res = wait_file(chan,ints,nextmsg,lang);
break;
case 'm':
/* First - Twelfth */
snprintf(nextmsg,sizeof(nextmsg), "digits/h-%d", tm.tm_mon +1);
res = wait_file(chan,ints,nextmsg,lang);
break;
case 'd':
case 'e':
/* First - Thirtyfirst */
@ -5249,7 +5245,7 @@ int ast_say_date_with_format_tw(struct ast_channel *chan, time_t time, const cha
res = wait_file(chan,ints,nextmsg,lang);
}
}
if(!res) res = wait_file(chan,ints,"ri",lang);
if(!res) res = wait_file(chan,ints,"digits/day",lang);
break;
case 'Y':
/* Year */

Loading…
Cancel
Save