MINOR: Nicer date formatting (from r95761)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98171 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-02-04 04:46:55 +00:00
parent ec43205551
commit 104171087b
2 changed files with 4 additions and 1 deletions

View File

@ -1311,7 +1311,7 @@ JS;
'CMSMain.ACCESS',
"Access to %s",
PR_MEDIUM,
"Item in permission selection identifying the admin section, with title and classname. Example: Access to Files & Images"
"Item in permission selection identifying the admin section. Example: Access to 'Files & Images'"
), $title, null),
'category' => _t('Permission.CMS_ACCESS_CATEGORY', 'CMS Access')
);

View File

@ -85,6 +85,9 @@ class CommentAdmin extends LeftAndMain {
$idField = new HiddenField('ID', '', $section);
$table = new CommentTableField($this, "Comments", "PageComment", $section, $tableFields, $popupFields, array($filter));
$table->setParentClass(false);
$table->setFieldCasting(array(
'Created' => 'SSDatetime->Nice'
));
$fields = new FieldSet(
new TabSet( 'Root',