Merge pull request #7 from bovisp/patch-2
change instances of gmdate to date
This commit is contained in:
commit
db09e78957
|
@ -177,7 +177,7 @@ class CommentsPlugin extends Plugin
|
||||||
|
|
||||||
$data['comments'][] = [
|
$data['comments'][] = [
|
||||||
'text' => $text,
|
'text' => $text,
|
||||||
'date' => gmdate('D, d M Y H:i:s', time()),
|
'date' => date('D, d M Y H:i:s', time()),
|
||||||
'author' => $name,
|
'author' => $name,
|
||||||
'email' => $email
|
'email' => $email
|
||||||
];
|
];
|
||||||
|
@ -187,7 +187,7 @@ class CommentsPlugin extends Plugin
|
||||||
'lang' => $lang,
|
'lang' => $lang,
|
||||||
'comments' => array([
|
'comments' => array([
|
||||||
'text' => $text,
|
'text' => $text,
|
||||||
'date' => gmdate('D, d M Y H:i:s', time()),
|
'date' => date('D, d M Y H:i:s', time()),
|
||||||
'author' => $name,
|
'author' => $name,
|
||||||
'email' => $email
|
'email' => $email
|
||||||
])
|
])
|
||||||
|
@ -317,7 +317,7 @@ class CommentsPlugin extends Plugin
|
||||||
$pages[] = [
|
$pages[] = [
|
||||||
'title' => $file->data['title'],
|
'title' => $file->data['title'],
|
||||||
'commentsCount' => count($file->data['comments']),
|
'commentsCount' => count($file->data['comments']),
|
||||||
'lastCommentDate' => gmdate('D, d M Y H:i:s', $file->modifiedDate)
|
'lastCommentDate' => date('D, d M Y H:i:s', $file->modifiedDate)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue