Welcome, Guest
Username: Password: Remember me

TOPIC:

urgent: ical export does not regard german summertime 7 years 1 month ago #20823

Alright did try to import the ics of your site into outlook (not web access) and indeed it was causing a problem. It was giving an error with the timezone, error "0x0004001A" and it probably happens as you are having a timezone other then UTC (Europe/Berlin).

Have to check a bit more.
(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.

Last edit: by Bluefox.

urgent: ical export does not regard german summertime 7 years 1 month ago #20824

Did see that with the "old" JEM3 i did modify the ical part a bit and it did send out a bit more info when having a timezone different then UTC so will test that out 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.

Last edit: by Bluefox.

urgent: ical export does not regard german summertime 7 years 1 month ago #20825

Did see that with the "old" JEM3 i did modify the ical part a bit and it did send out a bit more info when having a timezone different then UTC so will test that out too.

tested with outlook and with that outputted ics the times are shown correctly.
(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 1 month ago #20826

am blogging here but some info..

the ics within the "old" JEM3 is having this top tags
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//127.0.0.1//NONSGML kigkonsult.se iCalcreator 2.20//
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-TIMEZONE:Europe/Berlin
X-WR-CALNAME:Calendar
X-WR-CALDESC:Calendar Description
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:STANDARD
DTSTART:20151025T030000
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20160327T020000
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
END:DAYLIGHT
END:VTIMEZONE

And the code in the current JEM2 is outputting these tags
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//127.0.0.1//NONSGML kigkonsult.se iCalcreator 2.20//
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-TIMEZONE:Europe/Berlin

the code mentioned is not all needed (calname, etc..) but something needs to change.
(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.

Last edit: by Bluefox.

urgent: ical export does not regard german summertime 7 years 1 month ago #20827

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).
(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.

Last edit: by Bluefox.

urgent: ical export does not regard german summertime 7 years 1 month ago #20841

Thanks Bluefox so far!
Now I would try this but I have not found the helper.php yet:



components/com_jem/helpers/helper.php

I keep looking for it.

>>>If this has a happy end there should be a donation for whatever... :)
Attachments:

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

Time to create page: 0.587 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......