By Guest on Thursday, 15 November 2018
Replies 3
Likes 0
Views 1K
Votes 0
Dear jevents-team,

there is a bug i found in quering events in a range. Im using version 3.4.36.
Problem:
Events defined on the last day of a month wont show.
strings length will be never 10 eg. '2018-4-30' = 9. this means that the hh:mm:ss part wont be added to start- and enddate.

file to fix: components/com_jevents/libraries/dbmodel.php
function to fix: listIcalEventsByRange()
code part to fix: #2840, #2842


if (JString::strlen($startdate) == 10)
$startdate.= " 00:00:00";
if (JString::strlen($enddate) == 10)
$enddate.= " 23:59:59";
Hello,

Where are you getting: 2018-4-30 from? it should be: 2018-04-30 which = 10.

Many thanks
Tony
·
Thursday, 15 November 2018 22:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tony, its the value of $enddate passed to listIcalEventsByRange(). $startdate is also passed in this format but its formated at the beginning so it will use yyyy-mm-dd.

Daniel
·
Friday, 16 November 2018 09:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you upgrade to JEvents 3.4.48 and test again please.

Also please tell us the context where this is happening - are you navigating to new data range from the initial view? Are you filtering a list of events by date? Is it a menu item?

Can you also give us a URL so we can see the problem in action to try to recreate the issue

thanks
·
Friday, 16 November 2018 11:35
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post