RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Problems / Minor bugs in iCal Import
Posted:  05 Apr 2016 18:42   Last Edited By: Roel B.
I am using LuxCal VERSION: 4.3.0M

1. When the list of items available for import is shown, the 'Ignore' numbering is reversed somehow.
I have a list of 20 hockey games from April to August.
My standard procedure is always to test import just 1-2 entries initially to see if my iCal .ics file may need adjusting. The verify event list is showing all my items from top to bottom April to August. To try an import with just 2 of them, I clicked "check all Ignore boxes". Then I unticked just the top 2 games occurring in April and hit [Add Events]. Then I couldn't see those items on the calendar!?!? I found them using search ... what  I got instead was the last 2 games from August.

2. Timezone format Z is not being respected
This is a calendar exported from MS Outlook - I think Google does the same  - using the Z indicator on individual time fields rather than specifying a time zone variable.
DTSTART:20160830T003000Z
The Z at the end signals that it is UTC. So in my case, for Eastern time zone this entry
this should be: 8:30pm Monday Aug 29
imported as: 12:30 am Tuesday Aug 30

In my LuxCal administration settings, my time zone =America/Montreal

I am hoping to find what variable I can add to the .ics file to make the times come in correctly without having to adjust each manually? If I find that work-around, I will give an update here. Here is the iCal file with one example game in it:

Code:


BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
X-CALSTART:20160405T010000Z
X-CALEND:20160830T013000Z
X-WR-RELCALID:{00000018-EFA5-41E8-B68C-4769BCE5FDBC}
X-WR-CALNAME:subscribe_ical_league_team
BEGIN:VEVENT
CLASS:PUBLIC
CREATED:20160405T152641Z
DESCRIPTION:Avalanche @ Bruins - Exhibition GAME
DTEND:20160830T013000Z
DTSTAMP:20160405T152600Z
DTSTART:20160830T003000Z
LAST-MODIFIED:20160405T152641Z
LOCATION:arena
SEQUENCE:0
SUMMARY:Avalanche @ Bruins - Exhibition GAME
TRANSP:OPAQUE
UID:3047748_g@goalline.ca
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
END:VEVENT
END:VCALENDAR
Posted:  05 Apr 2016 19:02
For comparison, Luxcal itself is exporting like this - with sometimes the Z (on the  data item timestamp, created, modified) and sometimes the TZID designation instead (on the actual event start and end times)!
I wonder if adding this X-WR-TIMEZONE:America/Montreal to my import will work-around the issue.

Code:


BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
PRODID:- // LuxCal 4.3.0M // Calendar // EN
X-LC-CONTENT:user: all // cat: all // due: 2016-08-01 - 2016-08-31 // mod: begin - end
X-WR-CALNAME:test export
X-WR-TIMEZONE:America/Montreal
CALSCALE:GREGORIAN
BEGIN:VEVENT
DTSTAMP:20160405T164955Z
CREATED:20160406T153900Z
LAST-MODIFIED:20160406T153900Z
UID:20160830T043000ZAval-LuxCal@http://example.tld/?cal=mycal
SUMMARY:Avalanche @ Bruins - Exhibition GAME
DESCRIPTION:Avalanche @ Bruins - Exhibition GAME
CATEGORIES:Hockey
LOCATION:arena
DTSTART;TZID=America/Montreal:20160830T003000
DTEND;TZID=America/Montreal:20160830T013000
END:VEVENT
END:VCALENDAR
Posted:  05 Apr 2016 19:41
UPDATE - ALL Failed attempts:
- Tried adding the timezone I want
X-WR-TIMEZONE:America/Montreal

- Removed that and tried adding the timezone they are in UTC=Zulu=GMT = Iceland !
X-WR-TIMEZONE:Atlantic/Reykjavik

- Removed that and altered these:
DTEND:20160830T013000Z
DTSTART:20160830T003000Z
into these
DTEND;TZID=Atlantic/Reykjavik:20160830T013000Z
DTSTART;TZID=Atlantic/Reykjavik:20160830T003000Z

- Tried the same with TZID=America/Montreal

In every single instance, they still came out in my calendar 4 hours later than intended
Posted:  05 Apr 2016 20:04
!importICS.php doesn't seem to have any mention of timezone at all or I missed it in my quick glance. Is it possible there is absolutely no handling of timezone conversion at this time? So we must always have our ICS file to match exactly our calendar timezone. If this is the case, I hope this feature is added soon!
Posted:  06 Apr 2016 22:10
Thanks for this detailed report.

You're right in your last post, the iCal import script doesn't take into account time zone corrections. Most users are importing events within the same time zone; I guess that's the reason nobody ever complained about this.

However, I agree this functionality should be added to the script. I will see what I can do in the coming days.
If you want, you can send me your email address (via the Contacts page) and I will send you an updated importICS.php script as soon as the changes have been make.
Roel