[BUGFIX] Backend DateTimePicker has to use 24H format for time fields 11/38111/2
authorAndreas Allacher <andreas.allacher@gmx.at>
Tue, 24 Mar 2015 15:15:05 +0000 (16:15 +0100)
committerBenjamin Mack <benni@typo3.org>
Tue, 24 Mar 2015 15:50:04 +0000 (16:50 +0100)
DateTimePicker has to use the 24H format for time fields because
otherwise the AM/PM switch is not handled correctly.
It is already used for datetime fields but not for time/timesec fields.

Change-Id: Iaf83842e568bf822b07cccf74224f04be607d1d4
Resolves: #65975
Releases: master
Reviewed-on: http://review.typo3.org/38111
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/DateTimePicker.js

index 55c7d67..68b9513 100644 (file)
@@ -68,10 +68,10 @@ define('TYPO3/CMS/Backend/DateTimePicker', ['jquery'], function ($) {
                                                        break;
                                                case 'time':
                                                        options.pickDate = false;
-                                                       options.format = 'hh:mm';
+                                                       options.format = 'HH:mm';
                                                        break;
                                                case 'timesec':
-                                                       options.format = 'hh:mm:ss';
+                                                       options.format = 'HH:mm:ss';
                                                        options.pickDate = false;
                                                        options.useSeconds = true;
                                                        break;