blog date du commentaire, date découpée
This commit is contained in:
parent
40e25d9b6e
commit
9a853523a4
|
@ -307,10 +307,16 @@ class blog extends common {
|
|||
'value' => $comment['approval'] === true ? 'A' : 'R'
|
||||
]);
|
||||
}
|
||||
//Date et heure
|
||||
$gdh = mb_detect_encoding(\PHP81_BC\strftime('%d/%m/%y', $comment['createdOn']), 'UTF-8', true)
|
||||
? \PHP81_BC\strftime('%d/%m/%y', $comment['createdOn'])
|
||||
: utf8_encode(\PHP81_BC\strftime('%d/%m/%y', $comment['createdOn']));
|
||||
$gdh .= ' - ';
|
||||
$gdh .= mb_detect_encoding(\PHP81_BC\strftime('%H:%M', $comment['createdOn']), 'UTF-8', true)
|
||||
? \PHP81_BC\strftime('%H:%M', $comment['createdOn'])
|
||||
: utf8_encode(\PHP81_BC\strftime('%H:%M', $comment['createdOn']));
|
||||
self::$comments[] = [
|
||||
mb_detect_encoding(\PHP81_BC\strftime('%d %B %Y - %H:%M', $comment['createdOn']), 'UTF-8', true)
|
||||
? \PHP81_BC\strftime('%d %B %Y - %H:%M', $comment['createdOn'])
|
||||
: utf8_encode(\PHP81_BC\strftime('%d %B %Y - %H:%M', $comment['createdOn'])),
|
||||
$gdh,
|
||||
$comment['content'],
|
||||
$comment['userId'] ? $this->getData(['user', $comment['userId'], 'firstname']) . ' ' . $this->getData(['user', $comment['userId'], 'lastname']) : $comment['author'],
|
||||
$buttonApproval,
|
||||
|
|
Loading…
Reference in New Issue