main: With Dutch language year after 2020 is not spoken in say.c
Implemented the english way of saying the year in ast_say_date_with_format_nl. Currently the numbers are spoken correctly until 2020 and stopped working this year. ASTERISK-29297 #close Reported-by: Jacek Konieczny Change-Id: If5918eed5ab05df31df4dd23f08a909a60f6aba4
This commit is contained in:
parent
d7eaf44501
commit
980cc0d364
|
@ -5965,9 +5965,7 @@ int ast_say_date_with_format_nl(struct ast_channel *chan, time_t t, const char *
|
|||
}
|
||||
if (tm.tm_year > 100) {
|
||||
if (!res) {
|
||||
/* This works until the end of 2020 */
|
||||
snprintf(nextmsg, sizeof(nextmsg), "digits/%d", tm.tm_year - 100);
|
||||
res = wait_file(chan, ints, nextmsg, lang);
|
||||
res = ast_say_number(chan, tm.tm_year - 100, ints, lang, (char *) NULL);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue