git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-11-08 02:14:42 +00:00
parent 00d3c31496
commit e463c42ba7
2 changed files with 8 additions and 4 deletions

10
say.c
View File

@@ -3286,12 +3286,14 @@ int ast_say_date_with_format_da(struct ast_channel *chan, time_t time, const cha
}
break;
case 'H':
/* 24-Hour, single digit hours preceeded by "oh" (0) */
if (tm.tm_hour < 10 && tm.tm_hour > 0) {
res = wait_file(chan,ints, "digits/0",lang);
}
/* FALLTRHU */
case 'k':
/* 24-Hour */
res = wait_file(chan,ints,"digits/oclock",lang);
if (!res) {
res = ast_say_number(chan, tm.tm_hour, ints, lang, (char *) NULL);
}
res = ast_say_number(chan, tm.tm_hour, ints, lang, (char *) NULL);
break;
case 'M':
/* Minute */