[BUGFIX] Make date/time fields working again
This patch solves an issue with time-fields and a couple of inconsistencies for time(sec), date and datetime fields in BE: - BackendUtility::time() is superfluous as gmdate() can be used - Ensure stored data is identical to TYPO3 7 - Only use ISO dates in UTC timezone to communicate with JS (time fields use 1970-01-01 as date) - Only write ISO dates in UTC back to hidden FormEngine fields - Do that for all date/time fields to simplify JS code - Take care of necessary timezone conversion for date(time) fields - Correctly handle manual input - Fix record titles if a date field is the label field - Fix wrong Acceptance tests - Fix wrong Unit tests - Remove superfluous data-date-offset attribute for DateTimePicker - Streamline FormEngineValidation date handling code - Refactor DateTimePicker: fix code duplication, work in UTC only Resolves: #79249 Releases: master, 8.7 Change-Id: I12ef6b6f59f0843182e093f8f274989161820894 Reviewed-on: https://review.typo3.org/51242 Tested-by:TYPO3com <no-reply@typo3.com> Reviewed-by:
Johannes Kasberger <johannes.kasberger@reelworx.at> Tested-by:
Johannes Kasberger <johannes.kasberger@reelworx.at> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- typo3/sysext/backend/Classes/Form/Element/AbstractFormElement.php 2 additions, 2 deletions...sext/backend/Classes/Form/Element/AbstractFormElement.php
- typo3/sysext/backend/Classes/Form/Element/InputDateTimeElement.php 15 additions, 7 deletions...ext/backend/Classes/Form/Element/InputDateTimeElement.php
- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRecordTitle.php 2 additions, 2 deletions.../backend/Classes/Form/FormDataProvider/TcaRecordTitle.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 3 additions, 10 deletionstypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Resources/Public/JavaScript/DateTimePicker.js 93 additions, 109 deletions...ext/backend/Resources/Public/JavaScript/DateTimePicker.js
- typo3/sysext/backend/Resources/Public/JavaScript/FormEngineValidation.js 26 additions, 31 deletions...ckend/Resources/Public/JavaScript/FormEngineValidation.js
- typo3/sysext/backend/Tests/JavaScript/FormEngineValidationTest.js 1 addition, 1 deletion...sext/backend/Tests/JavaScript/FormEngineValidationTest.js
- typo3/sysext/backend/Tests/Unit/Form/Element/AbstractFormElementTest.php 2 additions, 2 deletions...ckend/Tests/Unit/Form/Element/AbstractFormElementTest.php
- typo3/sysext/belog/Resources/Private/Partials/Content/Filter.html 2 additions, 2 deletions...sext/belog/Resources/Private/Partials/Content/Filter.html
- typo3/sysext/core/Classes/DataHandling/DataHandler.php 25 additions, 16 deletionstypo3/sysext/core/Classes/DataHandling/DataHandler.php
- typo3/sysext/core/Classes/Database/QueryGenerator.php 1 addition, 1 deletiontypo3/sysext/core/Classes/Database/QueryGenerator.php
- typo3/sysext/core/Tests/Acceptance/Backend/Formhandler/ElementsBasicInputDateCest.php 10 additions, 10 deletions...ptance/Backend/Formhandler/ElementsBasicInputDateCest.php
- typo3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php 4 additions, 12 deletions...3/sysext/core/Tests/Unit/DataHandling/DataHandlerTest.php
- typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php 2 additions, 2 deletions...cheduler/Classes/Controller/SchedulerModuleController.php
Please register or sign in to comment