Keyword

Mod K2 tools Calendar Filter Date Problem [SOLVED]

  • paspantou
  • paspantou's Avatar Topic Author
  • Offline
  • New Member
More
12 years 5 months ago - 12 years 5 months ago #65962 by paspantou
Hi everyone,
I have the K2 Version 2.5.6 insttalled and i've enabled Module K2 tools in Blog-style Calendar functionality.
The problem is that when i click on a date in calendar, it selects the correct date and filters items correctly, also the URL is correct but on breadcrumbs and page-title shows one day before.
Any suggestions?
Attachments:

Please Log in or Create an account to join the conversation.

  • paspantou
  • paspantou's Avatar Topic Author
  • Offline
  • New Member
More
12 years 5 months ago #65963 by paspantou
Replied by paspantou on topic Re: Mod K2 tools Calendar Filter Date Problem
I manage to solve this out..but i don't 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')" .

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #65964 by Eva theo
Replied by Eva theo on topic Re: Mod K2 tools Calendar Filter Date Problem
Can you please tell me how did you manage to achive the article list view (title, intro, more) with the calendar view??

thanx in advance

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #65965 by Jorge Rodrigues
Replied by Jorge Rodrigues on topic Re: Mod K2 tools Calendar Filter Date Problem
I'm having the same problem ... The new version of the K2 line of code is this: JRequest :: getInt ('month'). '-'. JRequest :: getInt ('day'));

Could anyone help me

Ángel Candelaria<br /> Angel's Guitar

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum