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

Tzafrir Cohen (JIRA) noreply at issues.asterisk.org
Thu Jan 4 10:24:39 CST 2018


Tzafrir Cohen created ASTERISK-27546:
----------------------------------------

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


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



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



More information about the asterisk-bugs mailing list