Trackers, Unified-Index, Date; Since update to Tiki24 dates displayed in plugin list are minus 1 from the date in the trackeritems using elasticSearch
- Status
- Closed
- Subject
- Trackers, Unified-Index, Date; Since update to Tiki24 dates displayed in plugin list are minus 1 from the date in the trackeritems using elasticSearch
- Version
- 24.x
25.x - Category
- Regression
- Upgrade Blocker
- Feature
- Search
Trackers - Resolution status
- Fixed or Solved
- Submitted by
- Bernard Sfez / Tiki Specialist
- Keep informed
- Victor Emanouilov
- Lastmod by
- Bernard Sfez / Tiki Specialist
- Rating
- Description
I have a Tiki running elasticSearch set to use the time zone Asia/Jerusalem and the sample on the settings page displays correct information.
I have trackeritems with a date field (picker) to select dates.
For exemple I have an item (5761) with a human readable value of : 7/04/2022
However the value displayed for this date displayed from the unified index is the 6/04/2022
I can see it in the database
I can see it in the plugin list test tool
And of course in the plugin list used to display the value to the visitorsThe index is being rebuilt properly and I don't see any warning there:
Copy to clipboard2022-03-08T06:27:07+00:00 INFO (6): addDocument trackeritem 5761 {"memoryUsage":"33.4 MiB"}
Additional informations:
When I call the value from a different trackers (using a Dynamic Items List) the value displayed for the date is correct:
In my smarty template I use dates format:
Copy to clipboard<span class="font-weight-bold">{tr}{$days.tracker_field_holidaycampsDayDay|date_format:"%A"}{/tr}</span> <span class="small">{$days.tracker_field_holidaycampsDayDay|date_format:"%d"}/{$days.tracker_field_holidaycampsDayDay|date_format:"%m"}</span>
This was working fine on Tiki23 and is a major regression- Solution
Fixed by
https://gitlab.com/tikiwiki/tiki/-/commit/75ad81ef2766c062c7f8bc628c4027ed6780a496
and
https://gitlab.com/tikiwiki/tiki/-/commit/02307e79b8912b36abe1e6b9da749e8961a7668c- Importance
- 9
- Easy to solve?
- 5
- Priority
- 45
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 8118
- Created
- Tuesday 08 March, 2022 06:30:13 UTC
by Bernard Sfez / Tiki Specialist - LastModif
- Tuesday 08 March, 2022 15:22:09 UTC