diff --git a/code/model/BlogPost.php b/code/model/BlogPost.php index 7e6ac15..1d7fe0b 100644 --- a/code/model/BlogPost.php +++ b/code/model/BlogPost.php @@ -693,6 +693,9 @@ class BlogPost extends Page */ public function getDate() { + if ($this->hasDatabaseField('Date')) { + return $this->getField('Date'); + } return !empty($this->PublishDate) ? $this->PublishDate : null; }