From 258f7795877a0167ec34fdb1491cb7e0e5f7e03f Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 23:41:18 +0000 Subject: [PATCH] MINOR: Nicer date formatting (from r95761) (from r98171) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@105680 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 2 +- code/CommentAdmin.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index a5ebd291..c936abe9 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -1276,7 +1276,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') ); diff --git a/code/CommentAdmin.php b/code/CommentAdmin.php index 7f349139..c3b0bf0d 100644 --- a/code/CommentAdmin.php +++ b/code/CommentAdmin.php @@ -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',