Merge pull request #1004 from openclassify/vedatakd

fixed dateformat
This commit is contained in:
Ozcan Durak 2021-03-24 17:43:26 +03:00 committed by GitHub
commit 2267339c91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,8 +27,8 @@ class AdvTableColumns
'value' => [
'id' => 'entry.id',
'date' => function(EntryInterface $entry){
$created_at = date_format($entry['created_at'], 'd.m.Y H:i');
$finish_at = date_format($entry['finish_at'], 'd.m.Y H:i');
$created_at = ($entry['created_at']) ?date_format($entry['created_at'], 'd.m.Y H:i'): '';
$finish_at = ($entry['finish_at']) ? date_format($entry['finish_at'], 'd.m.Y H:i'): '';
return $created_at . ' <i class="fa fa-angle-right"></i> ' . $finish_at;
},
'name' => function (EntryInterface $entry) {