Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 1.28 KB

File metadata and controls

21 lines (13 loc) · 1.28 KB

DateFormat

Build Status Scrutinizer Quality Score Code Coverage Latest Stable Version Total Downloads

Simple date renderer for the Commentar project. This date formatter formats DateTime objects used in comments. Examples of these dates are "date posted" and "post updated" timestamps.

Installation

Add the formatter to the project's composer.json file:

"require": {
    "commentar/date-format": "0.0.*",
}

Use it in your templates:

<?php echo $this->renderView('DateFormat', ['timestamp' => $comment['updated']]); ?>