]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
say.c: correct time for polish
authorScott Griepentrog <sgriepentrog@digium.com>
Fri, 20 Dec 2013 21:12:44 +0000 (21:12 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Fri, 20 Dec 2013 21:12:44 +0000 (21:12 +0000)
In ast_say_date_with_format_pl(), change ast_say_number() to
use tm_sec instead of tm_mn.

(closes issue ASTERISK-22856)
Reported by: Robert Mordec
Review: https://reviewboard.asterisk.org/r/3082/
Patches:
     say.c.patch uploaded by veilen (license 6555)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@404456 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/say.c

index fe714431d7216252d631bb635a5e3f907c85b657..d1d266576f353ea94d746e2b7b8332fd7cbb152c 100644 (file)
@@ -5667,12 +5667,12 @@ int ast_say_date_with_format_pl(struct ast_channel *chan, time_t thetime, const
                                                if (!res)
                                                        res = wait_file(chan, ints, "digits/second-a", lang);
                                        } else {
-                                               res = ast_say_number(chan, tm.tm_min, ints, lang, "f");
+                                               res = ast_say_number(chan, tm.tm_sec, ints, lang, "f");
                                                if (!res) {
                                                        int ten, one;
                                                        ten = tm.tm_sec / 10;
                                                        one = tm.tm_sec % 10;
-                                                       
+
                                                        if (one > 1 && one < 5 && ten != 1)
                                                                res = wait_file(chan, ints, "digits/seconds", lang);
                                                        else