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

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Thu Jan 4 10:27:39 CST 2018


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

Richard Mudgett updated ASTERISK-27546:
---------------------------------------

    Description: 
{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).

  was:
{code}
time=$( $((`date +%s` + 60*60*24)) )  # This time tomorrow
asterisk -rx "channel original Local/500 at test application SayUnixTime $time,UTC,Qq"

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).


> '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