Lowercase am/pm in some instances

This commit is contained in:
Alex Cabal 2022-08-13 10:57:46 -05:00
parent bd7e60aca4
commit 1ded9881d6
3 changed files with 6 additions and 6 deletions

View file

@ -31,7 +31,7 @@ catch(Exceptions\SeException $ex){
<p><?= $poll->Description ?></p> <p><?= $poll->Description ?></p>
<? if($poll->IsActive()){ ?> <? if($poll->IsActive()){ ?>
<? if($poll->End !== null){ ?> <? if($poll->End !== null){ ?>
<p class="center-notice">This poll closes on <?= $poll->End->format('F j, Y g:i A') ?>.</p> <p class="center-notice">This poll closes on <?= $poll->End->format('F j, Y g:i a') ?>.</p>
<? } ?> <? } ?>
<? if(!$canVote){ ?> <? if(!$canVote){ ?>
<p class="center-notice">Youve already voted in this poll.</p> <p class="center-notice">Youve already voted in this poll.</p>
@ -44,9 +44,9 @@ catch(Exceptions\SeException $ex){
</p> </p>
<? }else{ ?> <? }else{ ?>
<? if($poll->Start !== null && $poll->Start > new DateTime()){ ?> <? if($poll->Start !== null && $poll->Start > new DateTime()){ ?>
<p class="center-notice">This poll opens on <?= $poll->Start->format('F j, Y g:i A') ?>.</p> <p class="center-notice">This poll opens on <?= $poll->Start->format('F j, Y g:i a') ?>.</p>
<? }else{ ?> <? }else{ ?>
<p class="center-notice">This poll closed on <?= $poll->End->format('F j, Y g:i A') ?>.</p> <p class="center-notice">This poll closed on <?= $poll->End->format('F j, Y g:i a') ?>.</p>
<p class="button-row narrow"><a href="<?= $poll->Url ?>/votes" class="button">View results</a></p> <p class="button-row narrow"><a href="<?= $poll->Url ?>/votes" class="button">View results</a></p>
<? } ?> <? } ?>
<? } ?> <? } ?>

View file

@ -28,7 +28,7 @@ catch(Exceptions\SeException $ex){
<? if($created){ ?> <? if($created){ ?>
<p class="center-notice">Thank you for voting in the <a href="<?= $vote->PollItem->Poll->Url ?>"><?= Formatter::ToPlainText($vote->PollItem->Poll->Name) ?> poll</a>.</p> <p class="center-notice">Thank you for voting in the <a href="<?= $vote->PollItem->Poll->Url ?>"><?= Formatter::ToPlainText($vote->PollItem->Poll->Name) ?> poll</a>.</p>
<? }else{ ?> <? }else{ ?>
<p class="center-notice">Your vote in the <a href="<?= $vote->PollItem->Poll->Url ?>"><?= Formatter::ToPlainText($vote->PollItem->Poll->Name) ?> poll</a> was submitted on <?= $vote->Created->format('F j, Y g:i A') ?>.</p> <p class="center-notice">Your vote in the <a href="<?= $vote->PollItem->Poll->Url ?>"><?= Formatter::ToPlainText($vote->PollItem->Poll->Name) ?> poll</a> was submitted on <?= $vote->Created->format('F j, Y g:i a') ?>.</p>
<? } ?> <? } ?>
<p class="button-row narrow"><a class="button" href="<?= $vote->PollItem->Poll->Url ?>/votes"> view results</a></p> <p class="button-row narrow"><a class="button" href="<?= $vote->PollItem->Poll->Url ?>/votes"> view results</a></p>
</section> </section>

View file

@ -17,10 +17,10 @@ catch(Exceptions\SeException $ex){
<p class="center-notice">Total votes: <?= number_format($poll->VoteCount) ?></p> <p class="center-notice">Total votes: <?= number_format($poll->VoteCount) ?></p>
<? if($poll->IsActive()){ ?> <? if($poll->IsActive()){ ?>
<? if($poll->End !== null){ ?> <? if($poll->End !== null){ ?>
<p class="center-notice">This poll closes on <?= $poll->End->format('F j, Y g:i A') ?>.</p> <p class="center-notice">This poll closes on <?= $poll->End->format('F j, Y g:i a') ?>.</p>
<? } ?> <? } ?>
<? }elseif($poll->End !== null){ ?> <? }elseif($poll->End !== null){ ?>
<p class="center-notice">This poll closed on <?= $poll->End->format('F j, Y g:i A') ?>.</p> <p class="center-notice">This poll closed on <?= $poll->End->format('F j, Y g:i a') ?>.</p>
<? } ?> <? } ?>
<table class="votes"> <table class="votes">
<tbody> <tbody>