From 104171087b6a8a94debc26bbe2c1c5315e45e52d Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 4 Feb 2010 04:46:55 +0000 Subject: [PATCH] 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 --- 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 35028f8c..9adc4ef2 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -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') ); diff --git a/code/CommentAdmin.php b/code/CommentAdmin.php index 3e7b4df5..8c2cd112 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',