<p>Joshua Colp <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/17832">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, approved
Joshua Colp: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">say.conf: fix 12pm noon logic<br><br>Fixes 12pm noon incorrectly returning 0/a.m.<br>Also fixes a misspelling typo in the config.<br><br>ASTERISK-29695 #close<br><br>Change-Id: Ie40f9618636eb4c483b449bd707a5dcffca5c406<br>---<br>M configs/samples/say.conf.sample<br>1 file changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configs/samples/say.conf.sample b/configs/samples/say.conf.sample</span><br><span>index de35ee4..4cab590 100644</span><br><span>--- a/configs/samples/say.conf.sample</span><br><span>+++ b/configs/samples/say.conf.sample</span><br><span>@@ -90,17 +90,17 @@</span><br><span> _date:[Aa]:. => digits/day-${SAY:16:1} ; day of week</span><br><span> _date:[de]:. => num:${SAY:6:2} ; day of month</span><br><span> _date:[H]:. => digits/oh, num:${SAY:8:2} ; hour (oh one, oh two, ..., oh nine, ten, eleven, ..., twenty-three)</span><br><span style="color: hsl(0, 100%, 40%);">- _date:[I]:. => num:$[${SAY:8:2} % 12] ; hour 0-12</span><br><span style="color: hsl(120, 100%, 40%);">+ _date:[I]:. => num:${IF($[${SAY:8:2} > 12] ? $[${SAY:8:2}%12] : ${SAY:8:2})} ; hour 0-12</span><br><span> _date:[M]:. => num:${SAY:10:2} ; minute</span><br><span> ; XXX too bad the '?' function does not remove the quotes</span><br><span style="color: hsl(0, 100%, 40%);">- ; _date:[pP]:. => digits/$[ ${SAY:10:2} > 12 ? "p-m" :: "a-m"] ; am pm</span><br><span style="color: hsl(120, 100%, 40%);">+ ; _date:[pP]:. => digits/$[ ${SAY:10:2} >= 12 ? "p-m" :: "a-m"] ; am pm</span><br><span> _date:[pP]:. => digits/p-m ; am pm</span><br><span> _date:[S]:. => num:${SAY:13:2} ; seconds</span><br><span> _date:[Ii]:. => num:$[${SAY:8:2} % 12] ; hour 0-12</span><br><span> _date:[k]:. => num:${SAY:8:2} ; hour (one, two. three, ...,twenty three</span><br><span> _date:[m]:. => num:${SAY:4:2} ; month number</span><br><span style="color: hsl(0, 100%, 40%);">- _date:[Q]:. => date:dby ;incompleat ; "today", "yesterday" or ABdY</span><br><span style="color: hsl(0, 100%, 40%);">- _date:[q]:. => date:dby ;incompleat ; "" (for today), "yesterday", weekday, or ABdY</span><br><span style="color: hsl(120, 100%, 40%);">+ _date:[Q]:. => date:dby ;incomplete ; "today", "yesterday" or ABdY</span><br><span style="color: hsl(120, 100%, 40%);">+ _date:[q]:. => date:dby ;incomplete ; "" (for today), "yesterday", weekday, or ABdY</span><br><span> _date:[R]:. => date:HM${SAY} ; 24 hour time, including minute</span><br><span> _date:[T]:. => date:HMS${SAY} ; 24 hour, minure, seconds</span><br><span> </span><br><span></span><br></pre><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/17832">change 17832</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/17832"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Ie40f9618636eb4c483b449bd707a5dcffca5c406 </div>
<div style="display:none"> Gerrit-Change-Number: 17832 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>