Loading...
 
Skip to main content

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
(0)
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.
Image

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
Image

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 visitors

Image
Image
Image

The index is being rebuilt properly and I don't see any warning there:

Copy to clipboard
2022-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:
Image

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+
Demonstrate Bug (older Tiki versions)
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


Show PHP error messages