Skip to content

Commit f8999fc

Browse files
committed
[BUGFIX] Hide Before/After Dates indexed with PHP timezone
Changed the "_hiddenBeforeDateTime" and "_hiddenAfterDateTime" Search Index Configuration to give over the PHP's currently configured Timezone. That way, considering everything is configured correctly in the server (same locale as PHP), "now" and all other queries should work as expected. Related: #70
1 parent a09d14e commit f8999fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Configuration/NodeTypes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
type: date
7777
include_in_all: false
7878
format: 'date_time_no_millis'
79-
indexing: '${(node.hiddenBeforeDateTime ? Date.format(node.hiddenBeforeDateTime, "Y-m-d\TH:i:s") + "Z" : null)}'
79+
indexing: '${(node.hiddenBeforeDateTime ? Date.format(node.hiddenBeforeDateTime, "Y-m-d\TH:i:sP") : null)}'
8080

8181

8282
'_hiddenAfterDateTime':
@@ -85,7 +85,7 @@
8585
type: date
8686
include_in_all: false
8787
format: 'date_time_no_millis'
88-
indexing: '${(node.hiddenAfterDateTime ? Date.format(node.hiddenAfterDateTime, "Y-m-d\TH:i:s") + "Z" : null)}'
88+
indexing: '${(node.hiddenAfterDateTime ? Date.format(node.hiddenAfterDateTime, "Y-m-d\TH:i:sP") : null)}'
8989

9090

9191
'TYPO3.Neos:Document':

0 commit comments

Comments
 (0)