Skip to content
Snippets Groups Projects
Commit 20a9592c authored by Sascha Egerer's avatar Sascha Egerer
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,7.6
Reviewed-on: https://review.typo3.org/53192


Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-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>
Tested-by: default avatarSascha Egerer <sascha@sascha-egerer.de>
parent 5df7e2c9
No related branches found
No related tags found
No related merge requests found
......@@ -691,15 +691,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