From afa9df617b7ba17dfe095a55f470d9c1a1591457 Mon Sep 17 00:00:00 2001 From: Elijah Madden Date: Tue, 10 Apr 2018 11:30:08 +0900 Subject: [PATCH] Don't strip Time info There is no need to strip the time info from the `created` column. This information might be useful in case of timezone differences or whatever. Let the formatting be done at the template level. --- src/modules/mod_weblinks/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mod_weblinks/helper.php b/src/modules/mod_weblinks/helper.php index 78a27ce..e02dcdf 100644 --- a/src/modules/mod_weblinks/helper.php +++ b/src/modules/mod_weblinks/helper.php @@ -83,7 +83,7 @@ class ModWeblinksHelper $model->setState( 'list.select', - 'a.*, c.published AS c_published,' . $case_when1 . ',' . $case_when2 . ',' . 'DATE_FORMAT(a.created, "%Y-%m-%d") AS created' + 'a.*, c.published AS c_published,' . $case_when1 . ',' . $case_when2 ); $model->setState('filter.c.published', 1);