forked from ZwiiCMS-Team/ZwiiCMS
v8.4.6 : encodage des dates
This commit is contained in:
parent
ac59d4b4e6
commit
69af3f7e40
@ -163,7 +163,7 @@ class blog extends common {
|
|||||||
self::$articles[] = [
|
self::$articles[] = [
|
||||||
$this->getData(['module', $this->getUrl(0), $articleIds[$i], 'title']),
|
$this->getData(['module', $this->getUrl(0), $articleIds[$i], 'title']),
|
||||||
// date('d/m/Y H:i', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn'])),
|
// date('d/m/Y H:i', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn'])),
|
||||||
strftime('%d %B %Y à %H:%M', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn'])),
|
utf8_encode(strftime('%d %B %Y - %H:%M', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn']))),
|
||||||
self::$states[$this->getData(['module', $this->getUrl(0), $articleIds[$i], 'state'])],
|
self::$states[$this->getData(['module', $this->getUrl(0), $articleIds[$i], 'state'])],
|
||||||
template::button('blogConfigEdit' . $articleIds[$i], [
|
template::button('blogConfigEdit' . $articleIds[$i], [
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $articleIds[$i],
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $articleIds[$i],
|
||||||
|
@ -90,7 +90,7 @@ class news extends common {
|
|||||||
// Met en forme le tableau
|
// Met en forme le tableau
|
||||||
self::$news[] = [
|
self::$news[] = [
|
||||||
$this->getData(['module', $this->getUrl(0), $newsIds[$i], 'title']),
|
$this->getData(['module', $this->getUrl(0), $newsIds[$i], 'title']),
|
||||||
date('d/m/Y H:i', $this->getData(['module', $this->getUrl(0), $newsIds[$i], 'publishedOn'])),
|
utf8_encode(strftime('%d %B %Y - %H:%M', $this->getData(['module', $this->getUrl(0), $newsIds[$i], 'publishedOn']))),
|
||||||
self::$states[$this->getData(['module', $this->getUrl(0), $newsIds[$i], 'state'])],
|
self::$states[$this->getData(['module', $this->getUrl(0), $newsIds[$i], 'state'])],
|
||||||
template::button('newsConfigEdit' . $newsIds[$i], [
|
template::button('newsConfigEdit' . $newsIds[$i], [
|
||||||
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsIds[$i],
|
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsIds[$i],
|
||||||
|
Loading…
Reference in New Issue
Block a user