Welcome, Guest
Username: Password: Remember me

TOPIC:

urgent: ical export does not regard german summertime 7 years 3 weeks ago #21289

it seems you are having a fatal error as it's outputting a white screen.

To see the error you can turn on the error output.
==========================================
- Site menu
- Global Configuration
- Server tab
- Server Settings

Be aware that when enabled the visitor can see the error too
(won't respond to PM)
==================================================================
running: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0-beta7 + PHP 7.3

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

urgent: ical export does not regard german summertime 7 years 3 weeks ago #21297

set it back, so thanks anyways

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

outlook ical export does not regard german summertime 5 years 9 months ago #23845

Dear Bluefox,
now I would like to install the Joomla 3.7 update and update to PHP 7
would you risk that or do I have to touch the helper file or anything again?

events.csd.isd-muc.de/
thanks
antonia

Bluefox wrote: Did not test it with other calendars (maybe tomorrow) but did do the following:

- File: components/com_jem/helpers/helper.php
Around line 830 you will find the function "static function getCalendarTool()"

and you can test out if the following code works for you.

/**
	 * return initialized calendar tool class for ics export
	 *
	 * @return object
	 */
	static function getCalendarTool()
	{
		require_once JPATH_SITE.'/components/com_jem/classes/iCalcreator.class.php';
		$timezone_name = JemHelper::getTimeZoneName();
		
		$config			= JFactory::getConfig();
		$sitename		= $config->get('sitename');
		
		$config = array( "unique_id" => $sitename, "TZID" => $timezone_name );

		$vcal = new vcalendar();
		if (!file_exists(JPATH_SITE.'/cache/com_jem')) {
			jimport('joomla.filesystem.folder');
			JFolder::create(JPATH_SITE.'/cache/com_jem');
		}
		$vcal->setConfig('directory', JPATH_SITE.'/cache/com_jem');
		$vcal->setProperty("calscale", "GREGORIAN");
		$vcal->setProperty('method', 'PUBLISH');
		$vcal->setProperty("X-WR-TIMEZONE", $timezone_name);
		$vcal->setProperty("x-wr-calname", "Calendar");
		$vcal->setProperty("X-WR-CALDESC", "Calendar Description");

		$xprops = array( "X-LIC-LOCATION" => $timezone_name );

		if ($timezone_name != 'UTC') {
			iCalUtilityFunctions::createTimezone( $vcal, $timezone_name, $xprops);
		}
		return $vcal;
	}

you might want to change or remove the lines for the name of the calendar (calname/caldesc).

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

Time to create page: 0.438 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......