Skip to content
Snippets Groups Projects
Commit a50a8b5e authored by Sascha Egerer's avatar Sascha Egerer Committed by Benni Mack
Browse files

[BUGFIX] Prefix single digit dates with 0 instead of whitespace

The backend query view, used for csv exports and lists, uses a date
format where single digit days of a date value are prefixed with a
whitespace instead of a 0.
This ends up in useless CSV exports that can not be interpreted by
tools like Excel.

Change-Id: Ie11c5f8a923eb412f014f06df528a2aa0101a0d4
Resolves: #81551
Releases: master,8.7
Reviewed-on: https://review.typo3.org/53189


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarManuel Selbach <manuel_selbach@yahoo.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 9ee2f3ce
No related branches found
No related tags found
No related merge requests found
......@@ -835,15 +835,15 @@ class QueryView
switch ($fields['type']) {
case 'date':
if ($fieldValue != -1) {
$out = strftime('%e-%m-%Y', $fieldValue);
$out = strftime('%d-%m-%Y', $fieldValue);
}
break;
case 'time':
if ($fieldValue != -1) {
if ($splitString === '<br />') {
$out = strftime('%H:%M' . $splitString . '%e-%m-%Y', $fieldValue);
$out = strftime('%H:%M' . $splitString . '%d-%m-%Y', $fieldValue);
} else {
$out = strftime('%H:%M %e-%m-%Y', $fieldValue);
$out = strftime('%H:%M %d-%m-%Y', $fieldValue);
}
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment