mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Update BlogEntry.php
Changed date as requested
This commit is contained in:
parent
8398c8e199
commit
dd466e6d4c
@ -51,7 +51,7 @@ class BlogEntry extends Page {
|
||||
|
||||
$requestedDevBuild = (stripos(Controller::curr()->request->getURL(), 'dev/build') === 0);
|
||||
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() : '');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user