Thursday, 15 November 2018
  3 Replies
  1.1K Visits
0
Votes
Undo
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";
Thursday, 15 November 2018 22:41
·
#207242
0
Votes
Undo
Hello,

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

Many thanks
Tony
Friday, 16 November 2018 09:56
·
#207250
0
Votes
Undo
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 11:35
·
#207252
0
Votes
Undo
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
  • Page :
  • 1
There are no replies made for this post yet.