Merge pull request #297 from lekoala/master

Allow injection on date
This commit is contained in:
Daniel Hensby 2015-11-20 09:30:06 +00:00
commit 4785ad0123

View File

@ -106,7 +106,7 @@ class BlogArchiveWidget extends Widget {
/**
* @var BlogPost $post
*/
$date = new Date();
$date = Date::create();
$date->setValue($post->PublishDate);
if($this->ArchiveType == 'Yearly') {