[Asterisk-code-review] say.conf: fix 12pm noon logic (asterisk[master])

Benjamin Keith Ford asteriskteam at digium.com
Thu Dec 16 08:28:14 CST 2021


Attention is currently required from: N A.
Benjamin Keith Ford has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/17651 )

Change subject: say.conf: fix 12pm noon logic
......................................................................


Patch Set 1:

(1 comment)

File configs/samples/say.conf.sample:

https://gerrit.asterisk.org/c/asterisk/+/17651/comment/69089663_705f2100 
PS1, Line 93:     _date:[I]:. => num:${IF($[${SAY:8:2} > 12] ? $[${SAY:8:2}%12] : ${SAY:8:2})}	; hour 0-12
> The problem in the original is that 12 % 12 = 0, but when it's 12, it's supposed to 12 (13 should be […]
Hm. Maybe there's more wrong with this, then. Hour 0 should not be a thing if we are going by hours human readable hours (1-12). This is just me glancing at it though, so I'll defer to you and others.



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17651
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ie40f9618636eb4c483b449bd707a5dcffca5c406
Gerrit-Change-Number: 17651
Gerrit-PatchSet: 1
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-CC: Benjamin Keith Ford <bford at digium.com>
Gerrit-Attention: N A <mail at interlinked.x10host.com>
Gerrit-Comment-Date: Thu, 16 Dec 2021 14:28:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: N A <mail at interlinked.x10host.com>
Comment-In-Reply-To: Benjamin Keith Ford <bford at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211216/24760b18/attachment-0001.html>


More information about the asterisk-code-review mailing list