Project

General

Profile

Actions

Bug #16535

closed

Format of created and modified date hardcoded in class

Added by Andreas Wagner over 17 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Should have
Category:
Indexed Search
Target version:
-
Start date:
2006-09-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The date format of the created and modified date that are shown in the search results are hardcoded in class.tx_indexedsearch.php, function makeInfo():
$tmplArray['created'] = date('d-m-y',$row['item_crdate']);
$tmplArray['modified'] = date('d-m-y H:i',$row['item_mtime']);

It would be nice to be able to set the date format from TS.

The attached patch adds

created_stdWrap {
strftime = %d-%m-%y
}
modified_stdWrap {
strftime = %d-%m-%y %H:%M
}

to ext_typoscript_setup.php and uses that in the class instead.

This is my first patch (and the first time I've used diff), so I'm not sure if I have done it right.

I used diff -u against the files from /TYPO3core/branches/TYPO3_4-0, and then merged the two diffs to the same file.
(issue imported from #M4169)


Files

hardcodedDateFormat.diff (1.16 KB) hardcodedDateFormat.diff Administrator Admin, 2006-09-07 00:53

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #16793: Date formatting should use Typo3 default settings and be configurableClosedMichael Stucki2006-12-17

Actions

No data to display

Actions

Also available in: Atom PDF