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.
This commit is contained in:
Elijah Madden 2018-04-10 11:30:08 +09:00 committed by GitHub
parent 8574a4f3cf
commit afa9df617b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);