Join GitHub today
0006296: Calendar.import shifts dates upon import from ics files #3200
Reported by weberho on 20 Apr 2012 15:38
Version: Milan (2012-03-2)
Some records from an ics file with birthdays are no imported correctly. Instead of "1970-10-25" the example is imported as "16.08.2012 start at 10:33".
I'm using the "php tine20.php -v --method=Calendar.import ... -v plugin=Calendar_Import_Ical" procedure.
Additional information: Example ics-file:
Comment posted by weberho on 10 May 2012 19:40
I have finally prepeared a patch, which allows import of several calendars generated with the latest lightning version. A total of around 3000 meetings, birthdays and holidays could successfully be imported.
The patch should fix for several ical-import-issues including #6158;
Comment posted by pschuele on 14 May 2012 07:24
the jenkins build failed, looks like the timezone is not taken into account:
Comment posted by weberho on 14 May 2012 10:03
This is strange. Input value is "DTSTART:20081105T150000Z" which means UTC; What timezones are used by the jenkins tool?
When I do a manual import of event 3632597 here at my system, I see the meeting at 16:00, which is correct, because in November it's Standard Central Europe Time (UTC+1); "2008-11-05 15:00:00" is correctly inserted into the database, too.
I'm quite sure, that the difference is caused by the fix on Calendar/Import/Ical.php line 204, which caused the date/time conversion to be ignored.
Comment posted by pschuele on 14 May 2012 11:22
the timezone should be UTC, too.
here is the file, that is used by the test, event uid 3632597 / dtstart is tested. i think, the test is working correctly as UTC should be default for imports.