Items with a publication period set to a date in the future are displayed in the web part. #1895
-
Version used Inquiry Subject Background and History ・The following query conditions are set when displaying the "PnP Search Results" Web Part. The intent is to only display items whose current time is between the "PublishedDateTime" and "ExpiredDateTime " columns. Expected behavior Describe the bug (= Difference from expected behavior) To Reproduce Questions |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not sure if you added spaces or not above.. but the query should be:
Also the date stored in the index is stored as Z time. If the item is added in say PST which is -9 hours, then the translation of "today" can likely break what you are looking for. You can try to use query variables instead as we then replace the date in the web part based on your local time adjusted to Z time
|
Beta Was this translation helpful? Give feedback.
Not sure if you added spaces or not above.. but the query should be:
Also the date stored in the index is stored as Z time. If the item is added in say PST which is -9 hours, then the translation of "today" can likely break what you are looking for.
You can try to use query variables instead as we then replace the date in the web part based on your local time adjusted to Z time