Skip to content
Snippets Groups Projects
Commit 01420307 authored by Simon Schaufelberger's avatar Simon Schaufelberger Committed by Stefan Bürk
Browse files

[BUGFIX] Use correct time format in from and to filter

H needs to be used because the datepicker is in 24h mode and
i stands for minutes with leading zero

Resolves: #97650
Releases: main, 11.5
Change-Id: Id3e37fdf08f34eda8b9e2a40e877e611996c2404
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74689


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
parent c786536d
Branches
Tags
No related merge requests found
......@@ -64,7 +64,7 @@ class BackendLogController extends ActionController
$this->settings['timeFormat'] = $GLOBALS['TYPO3_CONF_VARS']['SYS']['hhmm'];
}
// Static format needed for date picker (flatpickr), see BackendController::generateJavascript() and #91606
$this->settings['dateTimeFormat'] = ($GLOBALS['TYPO3_CONF_VARS']['SYS']['USdateFormat'] ? 'h:m m-d-Y' : 'h:m d-m-Y');
$this->settings['dateTimeFormat'] = ($GLOBALS['TYPO3_CONF_VARS']['SYS']['USdateFormat'] ? 'H:i m-d-Y' : 'H:i d-m-Y');
$constraintConfiguration = $this->arguments->getArgument('constraint')->getPropertyMappingConfiguration();
$constraintConfiguration->allowAllProperties();
$pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment