Issue Bug Closed

#49400Fix date format in BE user module - might be easier than it looks like

Chris topher 06/25/13, 12:59 updated 11/11/13, 19:18

Description

The date format in the BE user module is not yet localized. Dates should use the format, which is set in $GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘ddmmyy’].

This affects the dates in the tables
  • “User list”
  • “Active sessions” and
  • “Compare Backend Users” (which you see after clicking the “Compare user list” button)

Dates are handled with one and the same variable at 5 places:

In Partials/BackendUser/IndexListRow.html
<f:format.date format="{dateFormat} {timeFormat}">{backendUser.lastLoginDateAndTime}</f:format.date>

In Partials/BackendUser/OnlineListRow.html with these lines:
<f:format.date format="{dateFormat} {timeFormat}">{session.timestamp}</f:format.date>

And in Templates\BackendUser\Compare.html
Line 85: <f:format.date format="{dateFormat} {timeFormat}">{compareUser.startDateAndTime}</f:format.date> Line 100: <f:format.date format="{dateFormat} {timeFormat}">{compareUser.endDateAndTime}</f:format.date> Line 115: <f:format.date format="{dateFormat} {timeFormat}">{compareUser.lastLoginDateAndTime}</f:format.date>

Proposed solution:

The variable {dateFormat} should take the value from $GLOBALS[‘TYPO3_CONF_VARS’][‘SYS’][‘ddmmyy’].

Reviews 0

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