aboutsummaryrefslogtreecommitdiffstats
path: root/main/say.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-15 20:21:27 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-15 20:21:27 +0000
commit6cc4dbb969eda50f9d508d9679915c93b315bc6f (patch)
tree405c5859d87c9100c6fd065dfe225553743ae427 /main/say.c
parent18961dffe9d4ee7a1fa9d9ae5af6e0912ea1b40f (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@85686 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/say.c')
-rw-r--r--main/say.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/main/say.c b/main/say.c
index 38f6a5d3a..c5cda3eff 100644
--- a/main/say.c
+++ b/main/say.c
@@ -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 */