Mod K2 tools Calendar Filter Date Problem

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Thu Apr 18, 2013 8:24 pm
Reply with quote
Report this post
I know this is not the business of you ... It is a problem in K2, but still could not get any answer in the forum of K2.

I am having problems using the filter by date using the Calendar module
Example When I click on the 7th of November at the Calendar module.
displays the items of the day correctly, and is also the URL to the correct date.
But where has items filtered by date: Displays the previous day and date in the title also displays the wrong date.
See the attached image

Thanks for all the help ...

Sample Link: http://mancheteonline.com.br/component/k2/itemlist/date/2013/4/18.html
User avatar
Junior Boarder

GK User
Fri Apr 19, 2013 1:14 pm
Reply with quote
Report this post
Could someone help me??
User avatar
Junior Boarder

Konrad M
Mon Apr 22, 2013 10:08 am
Reply with quote
Report this post
Hi,
please try what is timezone of your server. Maybe is diffrent than yours and this is the reason why it is not correct.
User avatar

GK User
Mon Apr 22, 2013 5:58 pm
Reply with quote
Report this post
Unfortunately not ... I found this solution in the Forum K2, but it refers to the K2 version 2.5.6 ...


I manage to solve this out .. but i do not really think that'w the proper way to do this ...!
Here is the solution:
1. Open file .. \ components \ com_k2 \ views \ itemlist \ view.html.php
2. Go to line 232-233 nad change them ...
$ tmpday = JRequest :: getInt ('day') +1 / / myfix show one day before problem
$ date = strtotime (JRequest :: getInt ('year'). '-'. JRequest :: getInt ('month'). '-'. $ tmpday);

Problem Appears to be in "JRequest :: getInt ('day')."

But, The new version of the K2 line of code is this: JRequest :: getInt ('month'). '-'. JRequest :: getInt ('day'));
User avatar
Junior Boarder

GK User
Wed Apr 24, 2013 1:08 pm
Reply with quote
Report this post
Apparently, I have to remove this module!
User avatar
Junior Boarder

GK User
Tue Apr 30, 2013 1:40 pm
Reply with quote
Report this post
My last attempt ... Could anyone help me ...

Friend, my problem is this ... As you can see in the picture, in the example of a search for today (29), shows the materials of the day correctly.

But links instead of appearing Monday, April 29, is shown Sunday, April 28 ...

Link Mod K2 Calendar Sample of the Problem:

http://mancheteonline.com.br/rio-de-janeiro-91/itemlist/date/2013/4/29.html

I got this link to solve the problem, but it did not work ... Versions of K2 are different:

http://getk2.org/community/New-to-K2-Ask-here-first/12268-Mod-K2-tools-Calendar-Filter-Date-Problem-SOLVED#172015

Thank you for your attention

Sunday (Domingo)
Monday (Segunda-feira)
User avatar
Junior Boarder


cron