mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
FIX added date formatting
This commit is contained in:
parent
0d6b44aa44
commit
236bf6d8fc
@ -100,7 +100,7 @@ class BlogArchiveWidget extends Widget
|
||||
$query = SQLSelect::create($fields, "BlogPost{$suffix}")
|
||||
->addGroupBy($publishDate)
|
||||
->addOrderBy('PublishDate Desc')
|
||||
->addWhere(array('PublishDate < ?' => SS_Datetime::now()));
|
||||
->addWhere(array('PublishDate < ?' => SS_Datetime::now()->Format('Y-m-d')));
|
||||
|
||||
$posts = $query->execute();
|
||||
$result = new ArrayList();
|
||||
|
Loading…
Reference in New Issue
Block a user