[Home]

Summary:ASTERISK-27546: say: 'Q' and 'q' in English time formats only check the past
Reporter:Tzafrir Cohen (tzafrir)Labels:
Date Opened:2018-01-04 10:22:39.000-0600Date Closed:
Priority:MinorRegression?No
Status:Open/NewComponents:Core/Internationalization
Versions:GIT Frequency of
Occurrence
Related
Issues:
Environment:Tested in Git branch 13. Code appears to be the same in git master.Attachments:
Description:{noformat}
time=$( $((`date +%s` + 60*60*24)) )  # This time tomorrow
asterisk -rx "channel original Local/500@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).
Comments:By: Asterisk Team (asteriskteam) 2018-01-04 10:22:39.897-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].