Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
#23: Shorter date format
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Janssens committed Feb 8, 2017
1 parent 418248a commit 46c1a8c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<? elseif($date == $tomorrow) : ?>
<?= translate('Tomorrow') ?>:
<? else : ?>
<?= translate($date->format('l')).' '.$date->format('j').' '.translate($date->format('F')) ?>:
<?= translate($date->format('D')).' '.$date->format('j').' '.translate($date->format('M')) ?>:
<? endif ?>
</td>
<td>
Expand All @@ -42,9 +42,7 @@
<? foreach ($list as $hour) : ?>
<? if ($hour->opening_time && $hour->closing_time) : ?>
<time>
<?= $hour->opening_time ?>
<?= translate('till') ?>
<?= $hour->closing_time ?>
<?= $hour->opening_time ?> - <?= $hour->closing_time ?>
</time>
<?= $i < $count ? translate('and from') : '' ?>
<? $i++ ?>
Expand All @@ -71,4 +69,4 @@
</tfoot>
</table>
<? endif ?>
<? endif ?>
<? endif ?>

0 comments on commit 46c1a8c

Please sign in to comment.