! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Error in reading times from .ics (putting event on wrong date)
Status:
CLOSED: INVALID

Comments

Description Andrew Stone 2007-06-11 18:51:09 CEST
With orage v.4.5.9.3-svn, when importing a .ics file from Google Calendar, and when the event takes place at the end of the day, orage seems to think that the event takes place on the following day, and it assigns it a time in the morning for the same duration as the original event.

Notice that the time begins at "20070611T200000" (6-11-2007, 8:00 pm) and ends at "20070611T203000" (6-11-2007, 8:30 pm), yet orage puts the event down as occuring on 6-12-2007, 3:00am-3:30am.

Here is the .ics file to reproduce the error:

BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Test
X-WR-TIMEZONE:America/Los_Angeles
BEGIN:VTIMEZONE
TZID:America/Los_Angeles
X-LIC-LOCATION:America/Los_Angeles
BEGIN:DAYLIGHT
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:PDT
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20070611T200000
DTEND;TZID=America/Los_Angeles:20070611T203000
DTSTAMP:20070611T183220Z
ORGANIZER;CN=Andrew Stone:MAILTO:me@me.com
UID:1123
CLASS:PRIVATE
CREATED:20070611T182207Z
LAST-MODIFIED:20070611T183215Z
LOCATION:
SEQUENCE:3
STATUS:CONFIRMED
SUMMARY:Test: (Date: 6-11-2007)
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
Comment 1 juha editbugs 2007-06-11 19:31:50 CEST
I can not reproduce this.

I believe you are checking this from the event-lst window?
That windows shows times in local time, so I need to know what is
your local timezone. Please, check that form the settings.
./orage --preferences 
or click the preferences selection from the menu. Set your local timezone
and this should look better?

Or do you see it in the appointment window?

Comment 2 Andrew Stone 2007-06-11 19:48:17 CEST
I assumed that since the .ics file specified a time zone ("TZOFFSETFROM:-0800, TZOFFSETTO:-0700") that Orage would compensate for it.   I have always left my time zone on "floating."

And if I do set my time zone (America/Los Angeles, UTC-8, PST) it does work properly.
Comment 3 juha editbugs 2007-06-11 20:30:36 CEST
Yes, that ical files specifies timezone, but it means this EVENT timezone.

Floating is difficult.

For example if you set your local timeszone to floating and you have two 
EVENTS:
I) starting time 
DTSTART;TZID=America/Los_Angeles:20070611T200000

II) starting time
DTSTART;TZID=Europe/London:20070611T200000

What should Orage show in the eventlist window, which shows times in
local time? It is impossible to know how to convert those. 
(libical uses UTC as the default timezone so that is how it was converted.)

You should either use floating everywhere or (preferrably) timezones
everywhere. mixing floating and timezones is risky.

Bug #3331

Reported by:
Andrew Stone
Reported on: 2007-06-11
Last modified on: 2007-06-21

People

CC List:
0 users

Version

Version:
unspecified

Attachments

Additional information