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:
Nico Kooijman 2021-02-28 10:24:29 +01:00 committed by Joshua Colp
parent d7eaf44501
commit 980cc0d364
1 changed files with 1 additions and 3 deletions

View File

@ -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 {