DB Check : Full search : Advanced Query calendar problem
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)
Updated by Reiner Teubner over 3 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.