Match dates Different on TeamPlan and Results

Status: Finished
Branch: https://gitlab.com/joomleague/joomleague/tree/1.6.0

Moderator: And_One

Satoluja
Newbie
Posts: 9
Joined: Fri Apr 22, 2011 6:52 am
Joomleague version: 0.93x

Match dates Different on TeamPlan and Results

Postby Satoluja » Mon Mar 19, 2012 10:32 am

Joomleague 1.5.5 Amber
Joomla 1.5.25
When I display the results/ranking the dates are all displayed correctly, however when I display the TeamPlan for the same Project, all the dates are ahead by one day.
My test website is http://allsports.satoluja.com

Am I doing something really stupid. I have gone through all the settings and cannot find anything that would cause this, and I have searched the forums and cannot find details of a similar problem.

Appreciate any help you can give to point me in the right direction.

And_One
Joomleague Project Manager, Donator
Joomleague Project Manager, Donator
Posts: 3609
Joined: Fri Sep 11, 2009 4:00 pm
Joomleague version: 2.0.x
Location: Graz
Contact:

Re: Match dates Different on TeamPlan and Results

Postby And_One » Mon Mar 19, 2012 11:44 am


Satoluja
Newbie
Posts: 9
Joined: Fri Apr 22, 2011 6:52 am
Joomleague version: 0.93x

Re: Match dates Different on TeamPlan and Results

Postby Satoluja » Mon Mar 19, 2012 3:25 pm

Thanks for response, but not sure it makes any difference, have tried setting the time zones in just about every combination, but still the team plan dates are one day ahead of the match day (and Results) dates. Any other suggestions.

Satoluja
Newbie
Posts: 9
Joined: Fri Apr 22, 2011 6:52 am
Joomleague version: 0.93x

Re: Match dates Different on TeamPlan and Results

Postby Satoluja » Wed Mar 28, 2012 9:59 pm

Is there any patch for this problem? I looked at the bug tracker entry and it does not address this issue.

User avatar
teddy
.
Posts: 304
Joined: Wed Feb 28, 2007 12:01 pm

Re: Match dates Different on TeamPlan and Results

Postby teddy » Thu Mar 29, 2012 9:53 am

I think the bug is waiting for some dev to work on it, and it's a longstanding issue, related perhaps with a joomla bug.

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Match dates Different on TeamPlan and Results

Postby julienV » Fri Apr 06, 2012 3:44 pm

Satoluja, are you using any override ?
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

Satoluja
Newbie
Posts: 9
Joined: Fri Apr 22, 2011 6:52 am
Joomleague version: 0.93x

Re: Match dates Different on TeamPlan and Results

Postby Satoluja » Tue Apr 17, 2012 1:10 am

If you mean by override, the server offset parameter in joomleague, I have tried setting this to 0 as well as Australian EST, but dates in teamplan are still 1 day out. Funny thing is this only happens on matches entered with a time greater than 1pm. A match entered as 1pm gives the correct date in teamplan, whereas a match entered for 2pm shows as the date plus one day. The results module is correct however. Can teamplan and results not use the same code to provide the date?

Satoluja
Newbie
Posts: 9
Joined: Fri Apr 22, 2011 6:52 am
Joomleague version: 0.93x

Re: Match dates Different on TeamPlan and Results

Postby Satoluja » Tue Apr 17, 2012 3:25 am

Also if it helps, if I set the Joomla Global Settings Locale to UTC 00:00, the teamplan is displayed correctly (regardless of any settings in Joomleague, either global or project).
However I am cannot change the Joomla locale settings as this would affect other comp[onents that rely on the setting.

Satoluja
Newbie
Posts: 9
Joined: Fri Apr 22, 2011 6:52 am
Joomleague version: 0.93x

Re: Match dates Different on TeamPlan and Results

Postby Satoluja » Fri Jul 06, 2012 8:21 am

Has anyone found any way of solving this. We tried putting the website to UTC 00:00, but the problem with this is that all the other content is dated incorrectly as the server is in Australia.

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: Match dates Different on TeamPlan and Results

Postby julienV » Fri Jul 06, 2012 8:55 am

you can try this:
in views/teamplan/tmpl/default_plan.php, about line 400, replace:

Code: Select all

      <td width="10%"><?php
      if (!strstr($match->match_date,"0000-00-00"))
      {
         echo JHTML::date($match->match_date,JText::_('JL_GLOBAL_CALENDAR_DATE'));
      }
      else
      {
         echo "&nbsp;";
      }
      ?></td>

with

Code: Select all

      <td width="10%"><?php
      if (!strstr($match->match_date,"0000-00-00"))
      {
         echo strftime(JText::_('JL_GLOBAL_CALENDAR_DATE'), strtotime($match->match_date));
      }
      else
      {
         echo "&nbsp;";
      }
      ?></td>
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

Satoluja
Newbie
Posts: 9
Joined: Fri Apr 22, 2011 6:52 am
Joomleague version: 0.93x

Re: Match dates Different on TeamPlan and Results

Postby Satoluja » Fri Jul 06, 2012 12:02 pm

Thanks very much Julien, you're a star, it seems to work perfectly.


Return to “1.6.0-nathalie (Joomla: 1.5.x) - not supported”

Who is online

Users browsing this forum: No registered users and 2 guests

cron