[asterisk-bugs] [JIRA] (ASTERISK-27546) say: 'Q' and 'q' in English time formats only check the past

Joshua Colp (JIRA) noreply at issues.asterisk.org
Fri Jan 5 05:53:40 CST 2018


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-27546:
-----------------------------------

    Summary: say: 'Q' and 'q' in English time formats only check the past  (was: 'Q' and 'q' in English time formats only check the past)

> say: 'Q' and 'q' in English time formats only check the past
> ------------------------------------------------------------
>
>                 Key: ASTERISK-27546
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27546
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Internationalization
>    Affects Versions: GIT
>         Environment: Tested in Git branch 13. Code appears to be the same in git master.
>            Reporter: Tzafrir Cohen
>            Severity: Minor
>
> {noformat}
> time=$( $((`date +%s` + 60*60*24)) )  # This time tomorrow
> asterisk -rx "channel original Local/500 at test application SayUnixTime $time,UTC,Qq"
> {noformat}
> This should say the time tomorrow, twice. In practice we get just a single 'today'.
> It seems that main/say.c:ast_say_date_with_format_en()  check only for time in the present and the past, and anything that is in the future is considered "today".
> It seems that other languages have similar but worse code (looked at de, fr and he).



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list