Issue Bug Closed

#16793Date formatting should use Typo3 default settings and be configurable

Andreas Kastl 12/17/06, 11:52 updated 06/27/08, 10:49

Description

Search results contain information about create and modify timestamp. Format is currently hardcoded. Format pattern should be configurable via TS (e.g. modify with or without H:i) and respect users language settings (e.g. german format is d.m.Y, english format can be m.d.Y).

Minimum requirement is that date format follows Typo3 default settings from /typo3conf/localconf.php:

$TYPO3_CONF_VARS[‘SYS’][‘ddmmyy’] = <format pattern></format>

Following code lines are affected (CSV 1795):

2070 $tmplArray[‘created’] = date(‘d-m-y’,$row[‘item_crdate’]);
2071 $tmplArray[‘modified’] = date(‘d-m-y H:i’,$row[‘item_mtime’]);
(issue imported from #M4666)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.