forked from ZwiiCMS-Team/ZwiiCMS
[9.2.13] format de date dans blog
This commit is contained in:
parent
d26f8a38ba
commit
72240c810d
@ -111,8 +111,7 @@ class blog extends common {
|
|||||||
// Met en forme le tableau
|
// Met en forme le tableau
|
||||||
$comment = $comments[$commentIds[$i]];
|
$comment = $comments[$commentIds[$i]];
|
||||||
self::$comments[] = [
|
self::$comments[] = [
|
||||||
//date('d/m/Y H:i', $comment['createdOn']),
|
utf8_encode(strftime('%d %B %Y - %H:%M', $comment['createdOn'])),
|
||||||
strftime('%d %B %Y à %H:%M', $comment['createdOn']),
|
|
||||||
$comment['content'],
|
$comment['content'],
|
||||||
$comment['userId'] ? $this->getData(['user', $comment['userId'], 'firstname']) . ' ' . $this->getData(['user', $comment['userId'], 'lastname']) : $comment['author'],
|
$comment['userId'] ? $this->getData(['user', $comment['userId'], 'firstname']) . ' ' . $this->getData(['user', $comment['userId'], 'lastname']) : $comment['author'],
|
||||||
template::button('blogCommentDelete' . $commentIds[$i], [
|
template::button('blogCommentDelete' . $commentIds[$i], [
|
||||||
|
@ -95,7 +95,7 @@
|
|||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php echo $comment['author']; ?>
|
<?php echo $comment['author']; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
le <?php echo strftime('%d %B %Y à %H:%M', $comment['createdOn']); ?>
|
le <?php echo utf8_encode(strftime('%d %B %Y - %H:%M', $comment['createdOn'])); ?>
|
||||||
</h4>
|
</h4>
|
||||||
<?php echo $comment['content']; ?>
|
<?php echo $comment['content']; ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user