Bug #83675
closedDB Check : Full search : Advanced Query calendar problem
100%
Description
Using TYPO3 8.7.9 , PHP 7.0.26
Tested with IE 11 and Chrome 63 under Windows 7 in Canadian French.
Module DB Check : Full search : Advanced Query
When you create a new query that use a date field (ex: Table page, FIELD:tstamp) it shows the BE calendar. If you choose "today" once you click on the "update" button next to "+" just below, the value of date goes back to "00:33 01-01-1970" (independent of the time it is).
More precisely, for every case, the input field, once the form is updated turns into "00:33 01-01-1970" but the SQL shown few lines below is different.
If equal is chosen:
WHERE (pages.tstamp = '2018-01-24T14:19:00Z')
If is greater than:
WHERE (pages.tstamp > 2018)
If between December 2017 and January 2018:
WHERE (pages.tstamp >= 2017 AND pages.tstamp <= 2018)
Patrick
Updated by Reiner Teubner almost 7 years ago
- Status changed from New to In Progress
A deeper look at this show that in QuerGenerator.php:1670 this is going on.
... * @param int $timestamp the unix timestamp ... $value = ($timestamp > 0 ? strftime($dateFormat, $timestamp) : ''); // $timestamp == "2018-02-01T14:08:00Z" // $value == 00:33 01-01-1970 ...
With Patch https://review.typo3.org/c/51242/ there is a change Only write ISO dates in UTC back to hidden FormEngine fields
so thats the reason why here is a string and not a unix timestamp is given.
Updated by Gerrit Code Review almost 7 years ago
- Status changed from In Progress to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55533
Updated by Gerrit Code Review almost 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55533
Updated by Gerrit Code Review almost 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55533
Updated by Gerrit Code Review almost 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55533
Updated by Gerrit Code Review almost 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55533
Updated by Gerrit Code Review almost 7 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55533
Updated by Gerrit Code Review almost 7 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55533
Updated by Gerrit Code Review almost 7 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55533
Updated by Gerrit Code Review over 6 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55877
Updated by Reiner Teubner over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 43a9f0cfc542a9fdd7d77b4f0c30bded99d72474.
Updated by Manuel Selbach over 6 years ago
- Related to Bug #84588: Int values for field will be converted to unix timestamp in module "DB check" -> Full search added