allow injection on date

This commit is contained in:
Thomas 2015-11-20 08:53:20 +01:00
parent 8a877debf2
commit 4c4afd5b38

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') {