mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Merged revisions 85686 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85686 | russell | 2007-10-15 15:21:27 -0500 (Mon, 15 Oct 2007) | 7 lines 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/trunk@85718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5623,15 +5623,11 @@ int ast_say_date_with_format_tw(struct ast_channel *chan, time_t time, const cha
|
|||||||
case 'B':
|
case 'B':
|
||||||
case 'b':
|
case 'b':
|
||||||
case 'h':
|
case 'h':
|
||||||
|
case 'm':
|
||||||
/* January - December */
|
/* January - December */
|
||||||
snprintf(nextmsg,sizeof(nextmsg), "digits/mon-%d", tm.tm_mon);
|
snprintf(nextmsg,sizeof(nextmsg), "digits/mon-%d", tm.tm_mon);
|
||||||
res = wait_file(chan,ints,nextmsg,lang);
|
res = wait_file(chan,ints,nextmsg,lang);
|
||||||
break;
|
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 'd':
|
||||||
case 'e':
|
case 'e':
|
||||||
/* First - Thirtyfirst */
|
/* First - Thirtyfirst */
|
||||||
@@ -5646,7 +5642,7 @@ int ast_say_date_with_format_tw(struct ast_channel *chan, time_t time, const cha
|
|||||||
res = wait_file(chan,ints,nextmsg,lang);
|
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;
|
break;
|
||||||
case 'Y':
|
case 'Y':
|
||||||
/* Year */
|
/* Year */
|
||||||
|
|||||||
Reference in New Issue
Block a user