Jevents 2.x (Free Access)

Unknown or bad timezone when loading ICAl-Calendar

Discuss JEvents 2.x for Joomla 1.5-2.5 here - club members can use the special club forum for faster response times.
Forum rules
When requesting support please follow these steps:

1. Update all JEvents add on's first, via the Joomla! Updater
2. Copy and Paste the JEvents Support Information from the JEvents Control Panel.
3. If you get a 500 error OR white page, enable Maximum Error Reporting in Joomla! Global Config and visit the page again, this should give you a more detailed error and help us provide a prompt response.

Postby cywolf1 » Fri Jan 13, 2012 9:58 pm

Okay guys....I finally had time to look this over and debug it. I have a permanent solution with no hard coded hack. The whole problem is that the $tz variable comes over with quotes "America/Chicago" (or whatever timezone) in the string instead of just America/Chicago. To fix it, you just have to strip the quotes out of the string. The variable ends up with being equal to a timezone value that is not valid.
$tz = '"America/Chicago"'


When that gets passed to the Time or Date Class, it barfs because it expects 'America/Chicago' not '"America/Chicago"'. When the error prints out in logs or joomla, it shows ("America/Chicago") because of the way it parses the value. Hence the trouble finding it.

here is the patch(add just below line 566 or 562 in new version):
Code: Select all
$tz = str_replace('"','',$tz);


it should look like this:
Code: Select all
            
if (count($parts)>=2 && JString::strpos($parts[1],"TZID=")!==false){
   $tz = str_replace("TZID=", "",$parts[1]);
   $tz = str_replace('"','',$tz);
}
cywolf1
 
Posts: 3
Joined: Sat Oct 01, 2011 8:58 pm

Previous

Return to Jevents 2.x (Free Access)

  • Who is online
  • View new posts
  • View unanswered posts
  • In total there are 0 users online :: 0 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: No registered users