Update BlogEntry.php

Changed date as requested
This commit is contained in:
Phill Price 2014-10-24 10:44:35 +01:00
parent 8398c8e199
commit dd466e6d4c

View File

@ -51,7 +51,7 @@ class BlogEntry extends Page {
$requestedDevBuild = (stripos(Controller::curr()->request->getURL(), 'dev/build') === 0); $requestedDevBuild = (stripos(Controller::curr()->request->getURL(), 'dev/build') === 0);
if(!$requestedDevBuild){ if(!$requestedDevBuild){
$this->setField('Date', date('Y-m-d H:i:s', strtotime('now'))); $this->setField('Date', SS_Datetime::now()-> Rfc2822());
$this->setField('Author', Member::currentUser() ? Member::currentUser()->getName() : ''); $this->setField('Author', Member::currentUser() ? Member::currentUser()->getName() : '');
} }
} }